[NTG-context] Can ConTeXt display a simple itemized list as a comma-separated list?

Hans Hagen j.hagen at freedom.nl
Sun Feb 26 11:55:28 CET 2023


On 2/25/2023 5:01 PM, Joel via ntg-context wrote:
> I have a list like this:
> 
> \startitemize[1]
> \item fish
> \item eggs
> \item milk
> \stopitemize
> 
> Is there any command in ConTeXt to make this display the items as a 
> comma-separated list, like this:
> 
> fish, eggs, milk
> 
> Or a semi-colon-separated list?
> 
> fish; eggs; milk
In the next update you can set a textseparator.

\starttext

\startitemize[none,text][textseparator=;]
     \item fish
     \item eggs
     \item milk
\stopitemize

\defineitemgroup
   [fooditems]

\setupitemgroup
   [fooditems]
   [each]
   [none,text]
   [textseparator=;]

\blank[2*line]

\startfooditems
     \item fish
     \item eggs
     \item milk
\stopfooditems

\stoptext

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------



More information about the ntg-context mailing list