[NTG-context] Can ConTeXt display a simple itemized list as a comma-separated list?
mf
massifr at fastwebnet.it
Mon Feb 27 12:53:49 CET 2023
\setupitemgroup
[fooditems]
[each]
[none,text]
[textseparator={,}]
Comma is used to separate options; if you don't use braces, it means
that the textseparator is set to the empty string.
Massi
Il 27/02/23 12:33, Jan-Erik Hägglöf via ntg-context ha scritto:
> 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 <mailto: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
>> <http://www.pragma-ade.nl> | www.pragma-pod.nl <http://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 <mailto:ntg-context at ntg.nl> /
>> https://www.ntg.nl/mailman/listinfo/ntg-context
>> <https://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage  : https://www.pragma-ade.nl <https://www.pragma-ade.nl> /
>> http://context.aanhet.net <http://context.aanhet.net>
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> <https://bitbucket.org/phg/context-mirror/commits/>
>> wiki     : https://contextgarden.net <https://contextgarden.net>
>> ___________________________________________________________________________________
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
More information about the ntg-context
mailing list