#201: Make `centered` directive work in LaTeX output.

This commit is contained in:
Georg Brandl 2009-07-09 20:27:09 +02:00
parent ab4a507605
commit 1f0fcabe32
2 changed files with 4 additions and 2 deletions

View File

@ -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.

View File

@ -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