mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merged in klukas/sphinx (pull request #115)
Add configuration option for transitions in LaTeX output
This commit is contained in:
commit
c1c9f68099
@ -156,6 +156,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
|||||||
'tableofcontents': '\\tableofcontents',
|
'tableofcontents': '\\tableofcontents',
|
||||||
'footer': '',
|
'footer': '',
|
||||||
'printindex': '\\printindex',
|
'printindex': '\\printindex',
|
||||||
|
'transition': '\n\n\\bigskip\\hrule{}\\bigskip\n\n',
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, document, builder):
|
def __init__(self, document, builder):
|
||||||
@ -445,7 +446,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
|||||||
self.body.append('}\n')
|
self.body.append('}\n')
|
||||||
|
|
||||||
def visit_transition(self, node):
|
def visit_transition(self, node):
|
||||||
self.body.append('\n\n\\bigskip\\hrule{}\\bigskip\n\n')
|
self.body.append(self.elements['transition'])
|
||||||
def depart_transition(self, node):
|
def depart_transition(self, node):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user