Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-03-14 11:33:29 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-05-23 19:51:46 +0300
commitd501b94311d5e139e27ecb709ce645a18206063a (patch)
tree7ee1c6a94d219caa7b1aaa16e29c6b8fb3d40077 /sphinx/templates
parenta1293e28251dcabdb9f9a42fc04a138904e545bc (diff)
latex: Allow to add LaTeX package after hyperref loaded via API
Diffstat (limited to 'sphinx/templates')
-rw-r--r--sphinx/templates/latex/latex.tex_t8
1 files changed, 8 insertions, 0 deletions
diff --git a/sphinx/templates/latex/latex.tex_t b/sphinx/templates/latex/latex.tex_t
index a0a5a26b1..5082254e7 100644
--- a/sphinx/templates/latex/latex.tex_t
+++ b/sphinx/templates/latex/latex.tex_t
@@ -46,6 +46,14 @@
<%- endfor %>
<%= hyperref %>
+<%- for name, option in packages_after_hyperref %>
+<%- if option %>
+\usepackage[<%= option %>]{<%= name %>}
+<%- else %>
+\usepackage{<%= name %>}
+<%- endif %>
+<%- endfor %>
+
<%= contentsname %>
\usepackage{sphinxmessages}
<%= tocdepth %>