Skip to content

Commit

Permalink
Doc: add mathtools to imglatex. Use latex_additional_files instead of…
Browse files Browse the repository at this point in the history
… loop
  • Loading branch information
Bertbk committed Dec 11, 2024
1 parent 42bc6c2 commit 69e5e9e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,20 +264,19 @@

# Additional stuff for the LaTeX preamble.
latex_elements['preamble'] = '\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage[retainorgcmds]{IEEEtrantools}\n\\usepackage{mathtools}\n'
latex_additional_files = ['docs/sphinx/latex_macros.sty']

bibtex_bibfiles = ['docs/sphinx/biblio_wave.bib']

#####################################################
# add LaTeX macros

f = open('docs/sphinx/latex_macros.sty')
imgmath_latex_preamble = ""
imgmath_latex_preamble = "\\usepackage{mathtools}"
imgmath_image_format = 'svg'
imgmath_font_size = 14

for macro in f:
# used when building latex and pdf versions
latex_elements['preamble'] += macro + '\n'
# used when building html version
imgmath_latex_preamble += macro + '\n'

Expand Down

0 comments on commit 69e5e9e

Please sign in to comment.