English 中文(简体)
• 如何在重建的Text中建立国防军?
原标题:How to create a PDF in reStructuredText?

https://github.com/lebigot/uncertainties/tree/master/doc”rel=“nofollow”>documentation for the uncertainties Pack/a>, 载于《StructuredText》,looksstandard。 我想建立一个PDF版本。 目标是每个网页都有一个“章节”。

然而,情况是,由https://github.com/lebigot/uncertainties/tree/master/doc” rel=“nofollow”生成的PDF文件将(超文本)sections of index.html变成了个人. Chapters。 (我不想:人民抵抗力量也应该把他们当作一款。) 另一个问题是,主页之后的所有超文本页面都出现在PDF栏目中,该节点的“toctree指令(即主页的Acknowledgment部分)。

因此,ReST文档的结构应当如何,以便(1) 网页文件查阅,与现在的相同;(2) 每网页对应的是PDF一章。 任何帮助都值得赞赏!

最佳回答

https://github.com/lebigot/uncertainties/tree/master/doc”rel=“nofollow> 解决办法是。 如果我正确记住,关键要点是:

  • Use a special Table of Contents as the master document (I used index_TOC.rst instead of the default index.rst): in conf.py
    • master_doc = index_TOC
    • latex_documents = [( index_TOC , uncertaintiesPythonpackage.tex ,…]
  • * E/CN.6/2009/1。 页: 1

    TOC
    ===
    
    .. toctree::
       :hidden:
       :maxdepth: 1
    
       index
       user_guide
       numpy_guide
       tech_guide
    

因此,网站版本仍然开放到主<代码>/index.rst文本上,而PDF(LaTeX)版本的每份ReST文件都有一个单独的章。

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签