7

How can I use Sphinx to generate a pdflatex document in which there is some text before the table of contents? The generated LaTeX file always seems to have \tableofcontents before any document-body text.

I have been unable to find any information / documentation on this, and I'd appreciate it if anyone has any tips. I am not interested in 'manual' solutions which require modifying the tex file directly -- I am looking for directives / options which can be specified directly within rst files.

bad_coder
  • 11,289
  • 20
  • 44
  • 72
Mark
  • 3,357
  • 30
  • 31

1 Answers1

0

Try setting a value for latex_elements['preamble'] in your conf.py file.

Kevin Horn
  • 4,167
  • 28
  • 30