首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Python-Sphinx:用自定义页面替换标准首页

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

Stack Overflow用户
提问于 2019-04-18 12:45:15
回答 1查看 170关注 0票数 0

我很高兴地探索了狮身人面像的功能,到目前为止,一切看起来都很好。我现在要做的是用来自我的一个自定义的latex文档类的几个命令替换头版的标准胶乳格式。代码:

代码语言:javascript
复制
    [...]
    \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,我用它注入我的自定义命令,这很好。但是如何摆脱标准的标题页格式呢?

EN

回答 1

Stack Overflow用户

发布于 2019-04-18 22:33:45

我在tex.stackexchange的一个dupli帖子中回答了这个问题:

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55746353

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档