You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When option label is used, an extra pair of braces is added to \cs{the\@enumctr}, which influences \@currentlabel. This may break macros aiming to retrieve value from a label, for example the \gerrefnumber from refcount package (see this TeX-SX question as an example).
Is this pair of braces a must?
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\makeatletter\def\test{\meaning\@currentlabel}
\makeatother\begin{enumerate}
\item text \test% this defines \@currentlabel to "1"\end{enumerate}
\begin{enumerate}[label=\arabic*., ref=\arabic*]
\item text \test% this defines \@currentlabel to "{1}"\end{enumerate}
\end{document}
When option
label
is used, an extra pair of braces is added to\cs{the\@enumctr}
, which influences\@currentlabel
. This may break macros aiming to retrieve value from a label, for example the\gerrefnumber
fromrefcount
package (see this TeX-SX question as an example).Is this pair of braces a must?
Related source code, see line 548:
enumitem/enumitem.sty
Lines 541 to 551 in 1bdcad0
The text was updated successfully, but these errors were encountered: