diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-03-14 11:33:29 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-05-23 19:51:46 +0300 |
commit | d501b94311d5e139e27ecb709ce645a18206063a (patch) | |
tree | 7ee1c6a94d219caa7b1aaa16e29c6b8fb3d40077 /sphinx/templates | |
parent | a1293e28251dcabdb9f9a42fc04a138904e545bc (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_t | 8 |
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 %> |