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

Explicit labels on code blocks are duplicated in LaTeX output #4980

Closed
cpitclaudel opened this issue May 16, 2018 · 1 comment
Closed

Explicit labels on code blocks are duplicated in LaTeX output #4980

cpitclaudel opened this issue May 16, 2018 · 1 comment

Comments

@cpitclaudel
Copy link
Contributor

cpitclaudel commented May 16, 2018

Problem

The following snippet causes laTeX to complain about multiply-defined labels:

.. _test:

.. code:: python

   pass

This is low-priority, because using a proper :name: annotation works fine:

.. code:: python
   :name: test

   pass

(But it's still an issue when one wants to place an anchor before a list of multiple code samples.)

Error logs / results

Latexmk: List of undefined refs and citations:
  Label `index:test' multiply defined
Latexmk: Summary of warnings:
  Latex found 1 multiply defined reference(s)

Environment info

  • OS: GNU/Linux
  • Python version: 3.5.2
  • Sphinx version: 1.7.4
@tk0miya tk0miya added this to the 1.7.5 milestone May 17, 2018
tk0miya added a commit to tk0miya/sphinx that referenced this issue May 18, 2018
tk0miya added a commit to tk0miya/sphinx that referenced this issue May 18, 2018
tk0miya added a commit to tk0miya/sphinx that referenced this issue May 18, 2018
tk0miya added a commit to tk0miya/sphinx that referenced this issue May 18, 2018
tk0miya added a commit to tk0miya/sphinx that referenced this issue May 18, 2018
tk0miya added a commit to tk0miya/sphinx that referenced this issue May 18, 2018
tk0miya added a commit to tk0miya/sphinx that referenced this issue May 18, 2018
tk0miya added a commit to tk0miya/sphinx that referenced this issue May 18, 2018
tk0miya added a commit to tk0miya/sphinx that referenced this issue May 18, 2018
tk0miya added a commit to tk0miya/sphinx that referenced this issue May 18, 2018
tk0miya added a commit to tk0miya/sphinx that referenced this issue May 18, 2018
tk0miya added a commit to tk0miya/sphinx that referenced this issue May 18, 2018
cpitclaudel added a commit to cpitclaudel/coq that referenced this issue May 18, 2018
cpitclaudel added a commit to cpitclaudel/coq that referenced this issue May 18, 2018
tk0miya added a commit to tk0miya/sphinx that referenced this issue May 22, 2018
tk0miya added a commit to tk0miya/sphinx that referenced this issue May 22, 2018
tk0miya added a commit to tk0miya/sphinx that referenced this issue May 22, 2018
tk0miya added a commit to tk0miya/sphinx that referenced this issue May 22, 2018
tk0miya added a commit that referenced this issue May 23, 2018
…_latex

Fix #4980: latex: Explicit labels on code blocks are duplicated
@tk0miya
Copy link
Member

tk0miya commented May 23, 2018

Fixed by #4982.
Thank you for reporting!

@tk0miya tk0miya closed this as completed May 23, 2018
cpitclaudel added a commit to cpitclaudel/coq that referenced this issue Aug 7, 2018
cpitclaudel added a commit to cpitclaudel/coq that referenced this issue Aug 7, 2018
cpitclaudel added a commit to cpitclaudel/coq that referenced this issue Aug 13, 2018
cpitclaudel added a commit to cpitclaudel/coq that referenced this issue Sep 4, 2018
cpitclaudel added a commit to cpitclaudel/coq that referenced this issue Sep 4, 2018
cpitclaudel added a commit to cpitclaudel/coq that referenced this issue Sep 5, 2018
cpitclaudel added a commit to cpitclaudel/coq that referenced this issue Sep 6, 2018
cpitclaudel added a commit to cpitclaudel/coq that referenced this issue Sep 6, 2018
Zimmi48 pushed a commit to Zimmi48/coq that referenced this issue Sep 12, 2018
Zimmi48 pushed a commit to Zimmi48/coq that referenced this issue Sep 18, 2018
Zimmi48 pushed a commit to Zimmi48/coq that referenced this issue Sep 19, 2018
Zimmi48 pushed a commit to Zimmi48/coq that referenced this issue Sep 19, 2018
Zimmi48 pushed a commit to Zimmi48/coq that referenced this issue Sep 19, 2018
Zimmi48 pushed a commit to Zimmi48/coq that referenced this issue Sep 20, 2018
Zimmi48 pushed a commit to rocq-prover/rocq that referenced this issue Sep 21, 2018
Zimmi48 pushed a commit to Zimmi48/coq that referenced this issue Sep 28, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 15, 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