mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Added configuration option for how transitions are handled in latex
This commit is contained in:
parent
00ce20ee17
commit
788775f072
@ -156,6 +156,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
||||
'tableofcontents': '\\tableofcontents',
|
||||
'footer': '',
|
||||
'printindex': '\\printindex',
|
||||
'transition': '\n\n\\bigskip\\hrule{}\\bigskip\n\n',
|
||||
}
|
||||
|
||||
def __init__(self, document, builder):
|
||||
@ -446,7 +447,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
||||
self.body.append('}\n')
|
||||
|
||||
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):
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user