#331: Fix output for enumerated lists with start values in LaTeX.

This commit is contained in:
Georg Brandl
2010-02-19 10:45:04 +01:00
parent 24a5097717
commit b2c79111f8
2 changed files with 4 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
Release 0.6.5 (in development)
==============================
* #331: Fix output for enumerated lists with start values in LaTeX.
* Make the ``start-after`` and ``end-before`` options to the
``literalinclude`` directive work correctly if not used together.

View File

@@ -734,6 +734,8 @@ class LaTeXTranslator(nodes.NodeVisitor):
def visit_enumerated_list(self, node):
self.body.append('\\begin{enumerate}\n' )
if 'start' in node:
self.body.append('\\setcounter{enumi}{%d}\n' % (node['start'] - 1))
def depart_enumerated_list(self, node):
self.body.append('\\end{enumerate}\n' )