Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enumerated sublists with explicit start render wrong in LaTeX #4577

Closed
bgeron opened this issue Feb 7, 2018 · 3 comments
Closed

Enumerated sublists with explicit start render wrong in LaTeX #4577

bgeron opened this issue Feb 7, 2018 · 3 comments

Comments

@bgeron
Copy link
Contributor

bgeron commented Feb 7, 2018

Problem

The following renders wrong in LaTeX:

1.  First item

    5.  Fifth subitem
    6.  Sixth subitem

2.  Second item

Expected / HTML rendering: visually similar to source code

Wrong / current LaTeX PDF rendering:

1.  First item
    (a) Fifth subitem
    (b) Sixth subitem
5.  Second item

The problem is that "Second item" was never labelled "5" in the RST source.

The generated LaTeX source for this is as follows:

\begin{enumerate}
\item {} 
First item
\begin{enumerate}
\setcounter{enumi}{4}
\item {} 
Fifth subitem

\item {} 
Sixth subitem

\end{enumerate}

\item {} 
Second item

\end{enumerate}

Expected LaTeX output: ... \setcounter{enumii}{4} (rather than enumi).

Environment info

  • OS: Ubuntu 17.10
  • Python version: 3.6.3
  • Sphinx version: 1.6.5
@bgeron
Copy link
Contributor Author

bgeron commented Feb 7, 2018

Mildly related: #1431

@tk0miya tk0miya added this to the 1.7.1 milestone Feb 8, 2018
tk0miya added a commit to tk0miya/sphinx that referenced this issue Feb 18, 2018
tk0miya added a commit to tk0miya/sphinx that referenced this issue Feb 18, 2018
tk0miya added a commit that referenced this issue Feb 19, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Fix #4577: Enumerated sublists with explicit start with wrong number
@tk0miya
Copy link
Member

tk0miya commented Feb 19, 2018

Fixed by #4639.
Thank you for reporting!

@tk0miya tk0miya closed this as completed Feb 19, 2018
@bgeron
Copy link
Contributor Author

bgeron commented Feb 19, 2018

Thanks for fixing!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants