mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
merge with trunk
This commit is contained in:
commit
94e47ff6d8
2
CHANGES
2
CHANGES
@ -107,6 +107,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.
|
||||||
|
|
||||||
|
@ -310,9 +310,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,
|
||||||
|
@ -717,6 +717,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' )
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user