From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Jorge Manuel <desdechaves@gmail.com>
Subject: [NTG-context] Re: Issue with Custom Conversion Code in Latest Version of ConTeXt
Date: Mon, 7 Oct 2024 23:16:15 +0200 [thread overview]
Message-ID: <385b6085-f741-a7c8-f6c9-c0428fab17dd@gmail.com> (raw)
In-Reply-To: <618a0804-4cba-4985-9812-1227f6926107@Spark>
Jorge Manuel schrieb am 06.10.2024 um 17:44:
> Dear ConTeXt Support Team,
>
> I hope this message finds you well.
> In the latest version of ConTeXt, the following piece of code no longer
> works as expected. I use it to define a custom legal numbering format
> for itemized lists:
>
> \def\legalconversion#1{
> \dorecurse{\numexpr\currentitemlevel-1}{%
> \namedstructurecounter{itemgroup}{\currentparentitemgroup}{\recurselevel}.}%
> #1%
> }
>
> \defineconversion[legal][\legalconversion]
>
> Could you kindly advise on how to modify or fix this code to be
> compatible with the current version of ConTeXt?
Do you want this kind of numbering for itemize?
\starttext
\startitemize[n,repeat][stopper=,width=\widthofstring{0},distance=.5em]
\item 1
\startitemize[n,repeat][stopper=,width=\widthofstring{0.0},distance=.5em]
\item 1.1
\startitemize[n][stopper=,width=\widthofstring{0.0.0},distance=.5em]
\item 1.1.1
\stopitemize
\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 / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2024-10-07 21:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <c162a633-8188-4fdb-bce9-2304c4823943@Spark>
2024-10-06 15:44 ` [NTG-context] " Jorge Manuel
2024-10-07 19:51 ` [NTG-context] " Wolfgang Schuster
2024-10-07 21:16 ` Wolfgang Schuster [this message]
2024-10-11 11:41 ` desdechaves
2024-10-11 17:15 ` Wolfgang Schuster
2024-10-12 9:40 ` Jorge Manuel
2024-10-12 10:12 ` Wolfgang Schuster
2024-10-12 10:59 ` Jorge Manuel
2024-10-12 11:24 ` Jorge Manuel
2024-10-12 11:58 ` Wolfgang Schuster
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=385b6085-f741-a7c8-f6c9-c0428fab17dd@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=desdechaves@gmail.com \
--cc=ntg-context@ntg.nl \
/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).