【问题标题】:integrate Sphinx-generated Latex code in existing Latex documents将 Sphinx 生成的 Latex 代码集成到现有的 Latex 文档中
【发布时间】:2017-10-28 21:04:41
【问题描述】:

如何将 sphinx 生成的 Latex 代码集成到现有的 Latex 文档中? 我的问题与here 相同,但我认为在 6 年后应该找到解决此问题的方法。如果没有,现在是否有一些步骤可以手动执行?最佳做法?

【问题讨论】:

    标签: latex pdf-generation python-sphinx


    【解决方案1】:

    您需要将 Sphinx 放入 LaTeX 构建库的相同文件添加到您的 LaTeX 库中,即目前至少

    • sphinx.sty
    • footnotehyper-sphinx.sty
    • sphinxhighlight.sty
    • sphinxmulticell.sty

    并且您必须将\usepackage{sphinx} 添加到您的 LaTeX 文档序言中。

    您可能还需要 Sphinx 为 LaTeX 文档的序言添加的一些特殊定义。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-06-06
      • 1970-01-01
      • 2017-07-07
      • 2018-06-11
      • 2010-11-26
      • 2011-05-25
      相关资源
      最近更新 更多