Re: Rimuovere le parentesi dagli argomenti di un comando

#65562
Up
0
Down
::

egreg9″ post=64662
Se usi il codice
`\makeatletter
\def\enit@reflabel#1#2{%
\ifnum\enit@depth=\@ne\else % no level 0
\advance\enit@depth\@ne
\@namedef{p@\@enumctr}{}% Don't accumulate labels
\advance\enit@depth\m@ne
\fi
\ifcase#2%
\@namedef{the\@enumctr}{#1}%
\else
\enit@normlabel{\csname the\@enumctr\endcsname}{#1}%
\fi}
\def\enit@normlabel#1#2{%
\begingroup
\def\value{\enit@refstar@i\value}%
\let\enit@elt\enit@refstar
\enit@labellist
\protected@xdef\enit@a{#2}
\endgroup
\expandafter\let#1\enit@a}
\makeatother`
le graffe in più non appaiono. Sinceramente non so perché Bezos le abbia aggiunte.

Ciao
Enrico

Ci mette pure un commento in uno dei punti dove aggiunge parentesi:
`
\protected@xdef\enit@a{{#2}}% Added braces as \ref is in the global scope.`
Ovviamente non ho la più pallida idea di che cosa intenda. 😕

Grazie della tua assistenza. 🙂

Ciao,
A.

Go to top