Skip to content

Commit 62ddefa

Browse files
committed
remove/update deprecated latex settings
1 parent bc43368 commit 62ddefa

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

conf.py

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,6 @@ def __init__(self, **options):
278278
# Options for LaTeX output
279279
# ------------------------
280280

281-
# The paper size ('letter' or 'a4').
282-
#latex_paper_size = 'letter'
283-
284-
# The font size ('10pt', '11pt' or '12pt').
285-
#latex_font_size = '10pt'
286-
287281
# Latex references with page numbers (only Sphinx 1.0)
288282
latex_show_pagerefs = False
289283

@@ -299,19 +293,12 @@ def __init__(self, **options):
299293
# the title page.
300294
latex_logo = 'images/cover.pdf'
301295

302-
# For "manual" documents, if this is true, then toplevel headings are parts,
303-
# not chapters.
304-
latex_use_parts = True
305-
306-
# Documents to append as an appendix to all manuals.
307-
#latex_appendices = []
308-
309-
# If false, no module index is generated.
310-
latex_use_modindex = False
311-
296+
# Latex settings
297+
latex_toplevel_sectioning = 'part'
298+
latex_domain_indices = False
312299

313300
# Additional stuff for the LaTeX preamble.
314-
latex_preamble = r"""
301+
preamble = r"""
315302
\definecolor{VerbatimColor}{rgb}{0.961, .98, 1.}
316303
\definecolor{VerbatimBorderColor}{rgb}{0.6,0.6,0.6}
317304
\usepackage{graphics}
@@ -359,7 +346,7 @@ def __init__(self, **options):
359346
"""
360347

361348
latex_elements = {
362-
'preamble': latex_preamble,
349+
'preamble': preamble,
363350
'fontpkg': '\\usepackage{lmodern}',
364351
'fncychap': r'''%
365352
\usepackage[Sonny]{fncychap}%

0 commit comments

Comments
 (0)