开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜