Closed dbitouze closed 2 years ago
actually the bug is old. You get the same error with older version if you load nameref before hyperref. It was hidden as normally nameref was loaded in begindocument. As a workaround add this after begin document:
\makeatletter
\long\def\@secondoffive#1#2#3#4#5{#2}
\long\def\@fifthoffive#1#2#3#4#5{#5}
\makeatother
actually the bug is old. You get the same error with older version if you load nameref before hyperref. It was hidden as normally nameref was loaded in begindocument. As a workaround add this after begin document:
\makeatletter \long\def\@secondoffive#1#2#3#4#5{#2} \long\def\@fifthoffive#1#2#3#4#5{#5} \makeatother
OK, thanks. Is a real fix planned?
I already pushed a fix, but I don't know yet when I will upload to ctan.
Bug still present with hyperref
2022-06-13 v7.00r.
hm. I wonder what I did there. Need to check.
Oh I see, I forgot to merge this change.
Issue
Until
hyperref
v7.00n (at least), the following MCE:worked like a charm. But since at least v7.00p, the (second) compilation fails with:
Context
pdflatex
,xelatex
orlualatex
.My File List: