merge with 0.6

This commit is contained in:
Georg Brandl 2010-02-21 21:48:09 +01:00
commit 700dda624e
3 changed files with 6 additions and 3 deletions

View File

@ -86,6 +86,8 @@ Release 1.0 (in development)
Release 0.6.5 (in development) 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 * Make the ``start-after`` and ``end-before`` options to the
``literalinclude`` directive work correctly if not used together. ``literalinclude`` directive work correctly if not used together.

View File

@ -308,9 +308,8 @@ Project information
.. confval:: pygments_style .. confval:: pygments_style
The style name to use for Pygments highlighting of source code. Default is The style name to use for Pygments highlighting of source code. The default
``'sphinx'``, which is a builtin style designed to match Sphinx' default style is selected by the theme for HTML output, and ``'sphinx'`` otherwise.
style.
.. versionchanged:: 0.3 .. versionchanged:: 0.3
If the value is a fully-qualified name of a custom Pygments style class, If the value is a fully-qualified name of a custom Pygments style class,

View File

@ -741,6 +741,8 @@ class LaTeXTranslator(nodes.NodeVisitor):
def visit_enumerated_list(self, node): def visit_enumerated_list(self, node):
self.body.append('\\begin{enumerate}\n' ) 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): def depart_enumerated_list(self, node):
self.body.append('\\end{enumerate}\n' ) self.body.append('\\end{enumerate}\n' )