Use \protected@edef
to expand \thepage
at cleveref
firstaid
#1613
Labels
\protected@edef
to expand \thepage
at cleveref
firstaid
#1613
Brief Outline of the Enhancement
If the user redefines
\thepage
with a\protect
macro, an issue arises with\label
. Below is a minimal example that demonstrates the problem:The LaTeX team has already patched
\label@noarg
and\label@optarg
. Would it be possible to use\protected@edef
to expand\thepage
instead of\edef
? This change could potentially resolve the issue.Related issue: #1382
Relevant lines of code:
latex2e/required/firstaid/latex2e-first-aid-for-external-files.dtx
Lines 691 to 703 in b34260d
The text was updated successfully, but these errors were encountered: