Python-Sphinx:用自定义页面替换标准首页



我很高兴地探索狮身人面像的功能,到目前为止一切看起来都还不错。我现在要做的是用我的自定义 LaTeX-Documentclass 中的几个命令替换首页的标准乳胶格式。在代码中:

    [...]
    begin{document}
    ifdefinedshorthandoff
      ifnumcatcode`=string=activeshorthandoff{=}fi
      ifnumcatcode`"=activeshorthandoff{"}fi
    fi
    %%%%%%%% I needed to comment out / suppress these standard commands %%%%
    %pagestyle{empty}
    %maketitle
    %pagestyle{plain}
    %sphinxtableofcontents
    %pagestyle{normal}
    %%%%%%%%%%%%%%%%%%%%%%%%%%%
    phantomsectionlabel{detokenize{SoftwareTools/DeviceScanner/indexDeviceScanner::doc}}
    %%%% These custom commands can be injected via .. raw:: latex %%%%
    renewcommanddocumentTitle{Title Text}
    renewcommanddocumentPurpose{Purpose Text}
    renewcommanddocumentOwnerUnit{Text}
    renewcommanddocumentValidFor{Text}
    renewcommanddocumentAuthors{Author}
    begin{fcdFrontPage}
    fcdVersionTableRow{###}{Text}{Text}{Text}{Text}
    end{fcdFrontPage}

我已经发现了指令..raw::latex,我用它来注入我的自定义命令,这很好用。但是如何摆脱标准的标题页格式呢?

我在tex.stackexchange的dupli-post中回答了这个问题:

https://tex.stackexchange.com/q/485505/136433

最新更新