* item enumeration
[not found] <245477d9-0a13-4807-9ca4-ca277566641f@Spark>
@ 2022-05-25 10:22 ` Jorge Manuel via ntg-context
2022-05-25 10:56 ` Wolfgang Schuster via ntg-context
0 siblings, 1 reply; 2+ messages in thread
From: Jorge Manuel via ntg-context @ 2022-05-25 10:22 UTC (permalink / raw)
To: Hans Hagen via ntg-context; +Cc: Jorge Manuel
[-- Attachment #1.1: Type: text/plain, Size: 404 bytes --]
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?
Thanks for you support
Jorge Magalhães
[-- Attachment #1.2: Type: text/html, Size: 678 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: item enumeration
2022-05-25 10:22 ` item enumeration Jorge Manuel via ntg-context
@ 2022-05-25 10:56 ` Wolfgang Schuster via ntg-context
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2022-05-25 10:56 UTC (permalink / raw)
To: mailing list for ConTeXt users, Jorge Manuel via ntg-context
Cc: Wolfgang Schuster
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-05-25 10:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <245477d9-0a13-4807-9ca4-ca277566641f@Spark>
2022-05-25 10:22 ` item enumeration Jorge Manuel via ntg-context
2022-05-25 10:56 ` Wolfgang Schuster via ntg-context
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).