From: Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Jorge Manuel via ntg-context <ntg-context@ntg.nl>
Cc: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Subject: Re: item enumeration
Date: Wed, 25 May 2022 12:56:49 +0200 [thread overview]
Message-ID: <2687c650-685d-9702-09ae-e54f266c4dae@gmail.com> (raw)
In-Reply-To: <cbc5386a-789e-4886-97db-662205e51d16@Spark>
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
___________________________________________________________________________________
prev parent reply other threads:[~2022-05-25 10:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2687c650-685d-9702-09ae-e54f266c4dae@gmail.com \
--to=ntg-context@ntg.nl \
--cc=wolfgang.schuster.lists@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).