diff --git a/CHANGES b/CHANGES index 72a8b4627..da17d12bb 100644 --- a/CHANGES +++ b/CHANGES @@ -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. diff --git a/doc/config.rst b/doc/config.rst index 6f9a76033..917bdf144 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -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, diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index bc2bc14e3..fd33caec0 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -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' )