Copy some useful latex settings from NumPy

This commit is contained in:
Johannes Schönberger
2013-03-13 12:03:44 +01:00
parent 3f31b48fe1
commit d68515f0d8
+17 -1
View File
@@ -220,9 +220,25 @@ latex_documents = [
#latex_use_parts = False
# Additional stuff for the LaTeX preamble.
latex_preamble = '''
latex_preamble = r'''
\usepackage{enumitem}
\setlistdepth{100}
\usepackage{amsmath}
\DeclareUnicodeCharacter{00A0}{\nobreakspace}
% In the parameters section, place a newline after the Parameters header
\usepackage{expdlist}
\let\latexdescription=\description
\def\description{\latexdescription{}{} \breaklabel}
% Make Examples/etc section headers smaller and more compact
\makeatletter
\titleformat{\paragraph}{\normalsize\py@HeaderFamily}%
{\py@TitleColor}{0em}{\py@TitleColor}{\py@NormalColor}
\titlespacing*{\paragraph}{0pt}{1ex}{0pt}
\makeatother
'''
# Documents to append as an appendix to all manuals.