merge with trunk

This commit is contained in:
Georg Brandl 2010-02-21 21:49:54 +01:00
commit 94e47ff6d8
3 changed files with 6 additions and 3 deletions

View File

@ -107,6 +107,8 @@ Release 1.0 (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
``literalinclude`` directive work correctly if not used together.

View File

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

View File

@ -717,6 +717,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' )