Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0eea7b8

Browse files
committed
Fix LaTeX doc build
1 parent f966e4a commit 0eea7b8

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

doc/conf.py

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,25 @@
220220
latex_logo = None
221221

222222
# Additional stuff for the LaTeX preamble.
223-
latex_preamble = """
224-
\\usepackage{amsmath}
225-
\\usepackage{amsfonts}
226-
\\usepackage{amssymb}
227-
\\usepackage{txfonts}
223+
latex_preamble =r"""
224+
% In the parameters section, place a newline after the Parameters
225+
% header. (This is stolen directly from Numpy's conf.py, since it
226+
% affects Numpy-style docstrings).
227+
\usepackage{expdlist}
228+
\let\latexdescription=\description
229+
\def\description{\latexdescription{}{} \breaklabel}
230+
231+
\usepackage{amsmath}
232+
\usepackage{amsfonts}
233+
\usepackage{amssymb}
234+
\usepackage{txfonts}
235+
236+
% The enumitem package provides unlimited nesting of lists and
237+
% enums. Sphinx may use this in the future, in which case this can
238+
% be removed. See
239+
% https://bitbucket.org/birkenfeld/sphinx/issue/777/latex-output-too-deeply-nested
240+
\usepackage{enumitem}
241+
\setlistdepth{2048}
228242
"""
229243

230244
# Documents to append as an appendix to all manuals.
@@ -254,5 +268,3 @@
254268

255269
################# numpydoc config ####################
256270
numpydoc_show_class_members = False
257-
258-

0 commit comments

Comments
 (0)