这是部分答案,以我的知识为限。我希望它能让你更进一步。
默认情况下,转换将粗体样式应用于术语,并且该术语的定义与术语和换行的内联换行在后续行中包含缩进。请参阅下面的屏幕截图,了解Pyramid文档的PDF输出示例。
当你做make latexpdf
调用两个处理器连续,转换的reST文件到一个LaTeX文件,然后通过pdflatex
运行这些文件来生成PDF。
下面是在pyramid.tex
第一步的第一项词汇出现什么:
\item[{ACE\index{ACE|textbf}}] \leavevmode\phantomsection\label{\detokenize{glossary:term-ace}}
An \sphinxstyleemphasis{access control entry}. An access control entry is one element
in an {\hyperref[\detokenize{glossary:term-acl}]{\sphinxtermref{ACL}}}. An access control entry is a three-tuple that
describes three things: an \sphinxstyleemphasis{action} (one of either \sphinxcode{Allow} or
\sphinxcode{Deny}), a {\hyperref[\detokenize{glossary:term-principal}]{\sphinxtermref{principal}}} (a string describing a user or
group), and a {\hyperref[\detokenize{glossary:term-permission}]{\sphinxtermref{permission}}}. For example the ACE, \sphinxcode{(Allow,
'bob', 'read')} is a member of an ACL that indicates that the
principal \sphinxcode{bob} is allowed the permission \sphinxcode{read} against the
resource the ACL is attached to.
现在的问题归结为如何更改输出,以便它可以根据您的需要的样式。为此,您需要解析LaTeX customization上的Sphinx文档。如何做到这一点超出了我的理解。