Closed lucc closed 1 year ago
This is likely related to the minus character being handled specially to support style names with hyphens. There is an existing issue related to that (#294); fixing that will likely fix this reference issue as well.
It is not critical for me as I was able to rename my labels, just wanted to report it.
I once proposed that pygments
uses \csname ... \endcsname
in its latex formatter in https://github.com/pygments/pygments/issues/1770, though received no responses. The proposed change is https://github.com/muzimuzhi/pygments/commit/c068d4770ab3333101474397ceca1a362910c143 .
If I
\ref
a label that contains a minus character from within minted (withescapeinside
) the compilation breaks. Other labels work fine.The mwe.tex:
Compile with
pdflatex -shell-escape -interaction nonstopmode mwe.tex
The log
The result: