Jorge Manuel via ntg-context schrieb am 25.05.2022 um 12:22:
Hi to All
A have this piece of code that works in old ConText versions but with
new versions (current version: 2022.04.19 19:53) don’t.
\def\legalconversion#1{
\dorecurse{\numexpr\currentitemlevel-1}{%
\rawcounter[itemgroup:\currentparentitemgroup][\recurselevel].}%
#1%
}
\defineconversion[legal][\legalconversion]
How can fix this?
Are you looking for the repeat keyword?
\starttext
\setupitemize[1][width=\widthofstring {0},distance=1em]
\setupitemize[2][width=\widthofstring {0.0},distance=1em]
\setupitemize[3][width=\widthofstring{0.0.0},distance=1em]
\startitemize[n,repeat]
\item one
\startitemize[n]
\item one-one
\item one-two
\stopitemize
\item two
\startitemize[n,repeat]
\item two-one
\startitemize[n]
\item two-one-one
\item two-one-two
\stopitemize
\item two-two
\stopitemize
\stopitemize
\stoptext
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___