mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#201: Make `centered
` directive work in LaTeX output.
This commit is contained in:
parent
ab4a507605
commit
1f0fcabe32
2
CHANGES
2
CHANGES
@ -1,6 +1,8 @@
|
||||
Release 0.6.3 (in development)
|
||||
==============================
|
||||
|
||||
* #201: Make ``centered`` directive work in LaTeX output.
|
||||
|
||||
* #206: Refuse to overwrite an existing master document in
|
||||
sphinx-quickstart.
|
||||
|
||||
|
@ -784,9 +784,9 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
||||
self.body.append('\n')
|
||||
|
||||
def visit_centered(self, node):
|
||||
self.body.append('\n\\begin{centering}')
|
||||
self.body.append('\n\\begin{center}')
|
||||
def depart_centered(self, node):
|
||||
self.body.append('\n\\end{centering}')
|
||||
self.body.append('\n\\end{center}')
|
||||
|
||||
def visit_hlist(self, node):
|
||||
# for now, we don't support a more compact list format
|
||||
|
Loading…
Reference in New Issue
Block a user