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

问题描述 投票:0回答:1

我很高兴探索Sphinx的功能,到目前为止看起来都很好。我现在要做的是用我自定义的LaTeX-Documentclass中的几个命令替换首页的标准乳胶格式。在代码中:

    [...]
    \begin{document}

    \ifdefined\shorthandoff
      \ifnum\catcode`\=\string=\active\shorthandoff{=}\fi
      \ifnum\catcode`\"=\active\shorthandoff{"}\fi
    \fi

    %%%%%%%% I needed to comment out / suppress these standard commands %%%%
    %\pagestyle{empty}
    %\maketitle
    %\pagestyle{plain}
    %\sphinxtableofcontents
    %\pagestyle{normal}
    %%%%%%%%%%%%%%%%%%%%%%%%%%%
    \phantomsection\label{\detokenize{SoftwareTools/DeviceScanner/indexDeviceScanner::doc}}

    %%%% These custom commands can be injected via .. raw:: latex %%%%
    \renewcommand\documentTitle{Title Text}
    \renewcommand\documentPurpose{Purpose Text}
    \renewcommand\documentOwnerUnit{Text}
    \renewcommand\documentValidFor{Text}
    \renewcommand\documentAuthors{Author}
    \begin{fcdFrontPage}
    \fcdVersionTableRow{###}{Text}{Text}{Text}{Text}
    \end{fcdFrontPage}

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

formatting latex python-sphinx
1个回答
0
投票

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

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

© www.soinside.com 2019 - 2024. All rights reserved.