开发者

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

开发者 https://www.devze.com 2023-04-07 23:00 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号