Commits

Georg Brandl  committed 6ded4c3

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

  • Participants
  • Parent commits 2106751

Comments (0)

Files changed (2)

 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.
 

File sphinx/writers/latex.py

 
     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' )