[NTG-context] Can ConTeXt display a simple itemized list as a comma-separated list?
Jan-Erik Hägglöf
skrantajanneman at gmail.com
Mon Feb 27 12:33:35 CET 2023
I tested the code and the separator didnât show up
\mainlanguage[sv]
\setupbodyfont[12pt]
\defineitemgroup
[fooditems]
\setupitemgroup
[fooditems]
[each]
[none,text]
[textseparator=,]
\starttext
\startfooditems
\item fish
\item eggs
\item milk
\stopfooditems
\stoptext
> 26 feb. 2023 kl. 11:55 skrev Hans Hagen via ntg-context <ntg-context at ntg.nl>:
>
> 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
> -----------------------------------------------------------------
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context at ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : https://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___________________________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20230227/2ade0872/attachment-0004.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.log
Type: application/octet-stream
Size: 11150 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20230227/2ade0872/attachment-0002.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20230227/2ade0872/attachment-0005.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.pdf
Type: application/pdf
Size: 5873 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20230227/2ade0872/attachment-0001.pdf>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20230227/2ade0872/attachment-0006.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tex
Type: application/octet-stream
Size: 245 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20230227/2ade0872/attachment-0003.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20230227/2ade0872/attachment-0007.htm>
More information about the ntg-context
mailing list