Skip to content

Commit c2015e1

Browse files
tacaswellQuLogic
authored andcommitted
DOC: Use latex_elements instead of individual settings.
They were deprecated in Sphinx 0.5.
1 parent f051405 commit c2015e1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

doc/conf.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,6 @@
241241
# The paper size ('letter' or 'a4').
242242
latex_paper_size = 'letter'
243243

244-
# The font size ('10pt', '11pt' or '12pt').
245-
latex_font_size = '11pt'
246-
247244
# Grouping the document tree into LaTeX files. List of tuples
248245
# (source start file, target name, title, author, document class [howto/manual]).
249246

@@ -258,8 +255,9 @@
258255
# the title page.
259256
latex_logo = None
260257

258+
latex_elements = {}
261259
# Additional stuff for the LaTeX preamble.
262-
latex_preamble = r"""
260+
latex_elements['preamble'] = r"""
263261
% In the parameters section, place a newline after the Parameters
264262
% header. (This is stolen directly from Numpy's conf.py, since it
265263
% affects Numpy-style docstrings).
@@ -279,6 +277,7 @@
279277
\usepackage{enumitem}
280278
\setlistdepth{2048}
281279
"""
280+
latex_elements['pointsize'] = '11pt'
282281

283282
# Documents to append as an appendix to all manuals.
284283
latex_appendices = []

0 commit comments

Comments
 (0)