mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#331: Fix output for enumerated lists with start values in LaTeX.
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -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.
|
||||
|
||||
|
||||
@@ -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' )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user