You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a target in an anonymous link causes sphinx to define the target twice:
This is a test:
- `xyz`__, this is an anonymous link
__target_
Some text
.. _target:
Some more text
Output with Sphinx:
This is a test:
\begin{itemize}
\item {}
{\hyperref[\detokenize{index:target}]{\sphinxcrossref{xyz}}}, this is an anonymous link
\end{itemize}
\phantomsection\label{\detokenize{index:target}}\phantomsection\label{\detokenize{index:id1}}
Some text
\phantomsection\label{\detokenize{index:target}}
Some more text
Output with rst2latex:
This is a test:
\begin{itemize}
\item\hyperref[target]{xyz}, this is an anonymous link
\end{itemize}
Some text
\phantomsection\label{target}
Some more text
The Sphinx one has Label `index:target' multiply defined
Expected behavior
Sphinx shouldn't define the label twice.
Environment info
OS: GNU/Linux
Python version: 3.6.9
Sphinx version: 2.3.1
Sphinx extensions: none
Extra tools: LaTeX
Btw, could there be a sphinx command to get all this info? Like sphinx-build --version could print the OS, python version, and sphinx version, and even installed extensions.
Thanks!
The text was updated successfully, but these errors were encountered:
Describe the bug
Using a target in an anonymous link causes sphinx to define the target twice:
Output with Sphinx:
Output with rst2latex:
The Sphinx one has
Label `index:target' multiply defined
Expected behavior
Sphinx shouldn't define the label twice.
Environment info
Btw, could there be a sphinx command to get all this info? Like
sphinx-build --version
could print the OS, python version, and sphinx version, and even installed extensions.Thanks!
The text was updated successfully, but these errors were encountered: