diff --git a/docs/conf.py b/docs/conf.py index 5b82b3335..1f12b5ab9 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -143,23 +143,6 @@ def __getattr__(cls, name): # -- Options for LaTeX output --------------------------------------------- -latex_elements = { - # The paper size ('letterpaper' or 'a4paper'). - # - # 'papersize': 'letterpaper', - - # The font size ('10pt', '11pt' or '12pt'). - # - # 'pointsize': '10pt', - - # Additional stuff for the LaTeX preamble. - # - # 'preamble': '', - - # Latex figure (float) alignment - # - # 'figure_align': 'htbp', -} imgmath_latex_preamble = r''' \usepackage{algorithm} @@ -184,6 +167,36 @@ def __getattr__(cls, name): \newcommand{\Epi}[1]{\underset{\begin{subarray}{c}\tau \sim \pi \end{subarray}}{\E}\left[ #1 \right]} ''' +latex_elements = { + # The paper size ('letterpaper' or 'a4paper'). + # + # 'papersize': 'letterpaper', + + # The font size ('10pt', '11pt' or '12pt'). + # + # 'pointsize': '10pt', + + # Additional stuff for the LaTeX preamble. + # + 'preamble': r''' +\usepackage{algorithm} +\usepackage{algorithmic} +\usepackage{amsmath} +\usepackage{cancel} + + +\newcommand{\E}{{\mathrm E}} + +\newcommand{\underE}[2]{\underset{\begin{subarray}{c}#1 \end{subarray}}{\E}\left[ #2 \right]} + +\newcommand{\Epi}[1]{\underset{\begin{subarray}{c}\tau \sim \pi \end{subarray}}{\E}\left[ #1 \right]} +''', + + # Latex figure (float) alignment + # + # 'figure_align': 'htbp', +} + # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, # author, documentclass [howto, manual, or own class]).