LaTeX: links in table captions do not work in PDF (original) (raw)
Describe the bug
When I use a link in the tablecaption to another chapter in the document, the link doesn't work in the PDF.
In the *.tex file the caption looks like this:
\sphinxcaption{To find the tablecaption see Title}\label{\detokenize{index:id2}}
When I change it to this:
\sphinxcaption{To find the tablecaption see \hyperref[\detokenize{index:title}]{\sphinxcrossref{\DUrole{std,std-ref}{Title}}}}\label{\detokenize{index:id2}}
the link is working.
How to Reproduce
For index.rst and conf.py see:
tablecaption.zip
Environment Information
Platform: win32; (Windows-10-10.0.19045-SP0)
Python version: 3.11.6 (tags/v3.11.6:8b6ee5b, Oct 2 2023, 14:57:12) [MSC v.1935 64 bit (AMD64)])
Python implementation: CPython
Sphinx version: 7.2.6
Docutils version: 0.18.1
Jinja2 version: 3.1.2
Pygments version: 2.16.1
Sphinx extensions
No response
Additional context
No response