\p@<counter>
and cleveref
firstaid
#1544
Labels
fixed in dev
Fixed in development branch, not in stable release
\p@<counter>
and cleveref
firstaid
#1544
Brief outline of the enhancement
(First caught by a test in the
ctex
bundle, see log of its scheduled job.)When
\labelformat
is introduced to the kernel in the 2019 Autumn release, the\p@<counter>
is extended to accept one argument, usually\the<counter>
. The uses of\p@<counter>
in the kernel code is accordingly adapted, by adding an\expandafter
:But the uses of
\p@<counter>
incleveref.sty
is never updated (due to lack of maintenance?), thusctex
patches uses of\p@<counter>
incleveref
to insert the needed\expandafter
.Then in the most recent 2024-11-01 release,
cleveref
firstaid is extended with a pre-\labelformat
use of\p@<counter>
(see code line 736 below), which is missed byctex
's patches and causes problems whenctex
is used withhyperref
andcleveref
.latex2e/required/firstaid/latex2e-first-aid-for-external-files.dtx
Lines 729 to 738 in 716dec2
What's the recommended way to continue here, update
cleveref
firstaid (which introduces inconsistent uses of\p@<counter>
) or extendctex
patches forcleveref
(which means to patchcleveref
firstaid hmm)? Of course the best solution is to updatecleveref.sty
itself...Minimal example showing the current behaviour
Expected
> \cref@currentlabel=macro: ->[section][1][]1.
Actual
The text was updated successfully, but these errors were encountered: