Any way to generate multiple different pdfs from single sphinx configuration

谁都会走 提交于 2019-12-12 19:16:44

问题


I have a nice sphinx documentation concerning a projects, and I would like to extend it to generate documents such as specs, and other. I would like to have spec-for-foo.rst that generates spec-for-foo.pdf


回答1:


The solution is to edit latex_documents entry in your sphinx conf.py file, this entry contains descriptors for all the files produced by latex .

This config entry contains a list of touples, that contains: (source file, target tex file, document title, author, and document class:

latex_documents = [
   ('index', 'Kaskady.tex', u'Kaskady  Documentation',
    u'Author', 'manual'),
   ('profile', 'profiles.tex', u'Wyznaczanie profili', 
    u'Author', 'howto'),
]


来源:https://stackoverflow.com/questions/15879276/any-way-to-generate-multiple-different-pdfs-from-single-sphinx-configuration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!