How can I add a foreword or a preface before the TOC in a (pdflatex) sphinx document?
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 / documenta开发者_Go百科tion 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.
Try setting a value for latex_elements['preamble'] in your conf.py file.
加载中,请稍侯......
精彩评论