Skip to content

Commit

Permalink
Updated conf.py to new LaTeX customization scheme
Browse files Browse the repository at this point in the history
(latex_preamble->latex_elements).
  • Loading branch information
BubuLK committed Jun 27, 2017
1 parent 74db9ea commit 8fb2189
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions doc/conf.py
Expand Up @@ -214,9 +214,11 @@
# not chapters.
#latex_use_parts = False

# Additional stuff for the LaTeX preamble.
#latex_preamble = ''
latex_preamble = r"""
# Additional stuff for the LaTeX customization.
#
latex_engine = "xelatex"
latex_elements = {
'preamble': r'''
\usepackage{bm}
\usepackage{amsfonts}
\def\dt{{\Delta t}}
Expand Down Expand Up @@ -246,7 +248,8 @@
\def\vb{\bm{v}}
\def\Mb{\bm{M}}
\def\vphib{\bm{\varphi}}
"""
''',
}
# LS: Are the following needed as well?
#\def\Vcal{\mathcal{V}}
#\def\Tcal{\mathcal{T}}
Expand All @@ -260,7 +263,7 @@
#latex_use_modindex = True

# Preamble for imgmath images
imgmath_latex_preamble = latex_preamble
imgmath_latex_preamble = latex_elements['preamble']

# Better math vertical alignment (need LaTeX preview package)
imgmath_use_preview = True
Expand Down

0 comments on commit 8fb2189

Please sign in to comment.