mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
latex writer: move ever template parts into latex.tex_t
Signed-off-by: Gabriel Laskar <gabriel@lse.epita.fr>
This commit is contained in:
parent
75248d1ed1
commit
3691d6ca64
@ -44,6 +44,10 @@
|
||||
\newcommand{\sphinxlogo}{<%= logo %>}
|
||||
\renewcommand{\releasename}{<%= releasename %>}
|
||||
<%= makeindex %>
|
||||
\begin{document}
|
||||
<%= shorthandoff %>
|
||||
<%= maketitle %>
|
||||
<%= tableofcontents %>
|
||||
<%= body %>
|
||||
<%= atendofbody %>
|
||||
<%= indices %>
|
||||
|
@ -47,13 +47,6 @@ if False:
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
BEGIN_DOC = r'''
|
||||
\begin{document}
|
||||
%(shorthandoff)s
|
||||
%(maketitle)s
|
||||
%(tableofcontents)s
|
||||
'''
|
||||
|
||||
SHORTHANDOFF = r'''
|
||||
\ifdefined\shorthandoff
|
||||
\ifnum\catcode`\=\string=\active\shorthandoff{=}\fi
|
||||
@ -901,7 +894,6 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
||||
self.curfilestack.append(node.get('docname', ''))
|
||||
if self.first_document == 1:
|
||||
# the first document is all the regular content ...
|
||||
self.body.append(BEGIN_DOC % self.elements)
|
||||
self.first_document = 0
|
||||
elif self.first_document == 0:
|
||||
# ... and all others are the appendices
|
||||
|
Loading…
Reference in New Issue
Block a user