How can I add a preface or a preface before the TOC in a (hidden) sphinx (pdflatex) document?

How can I use Sphinx to create a pdflatex document that has some text before the table of contents? The generated LaTeX file always has \tableofcontents before any text in the document.

I could not find any information / documentation about this, and I would appreciate if anyone has any advice. I'm not interested in "manual" solutions that require changing the tex file directly - I'm looking for directives / options that can be specified directly in the first files.

+6
source share
1 answer

Try setting the value of latex_elements['preamble'] in the conf.py file.

0
source

Source: https://habr.com/ru/post/898082/


All Articles