From: Otared Kavian via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Otared Kavian <otared@gmail.com>
Subject: Re: Can ConTeXt display a simple itemized list as a comma-separated list?
Date: Mon, 27 Feb 2023 15:56:03 +0100 [thread overview]
Message-ID: <B8D7F34B-959F-4762-AC8E-493209582740@gmail.com> (raw)
In-Reply-To: <6470BFAA-6DFC-45CA-B7DE-7C10FC634C96@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 3380 bytes --]
Hi,
Indeed you are right. However, Hans said the feature would be added in the next update: so you have to wait a little bit :-)
Best regards: Otared
> On 27 Feb 2023, at 12:33, Jan-Erik Hägglöf via ntg-context <ntg-context@ntg.nl> wrote:
>
> 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
> <test.log>
> <test.pdf>
> <test.tex>
>
>> 26 feb. 2023 kl. 11:55 skrev Hans Hagen via ntg-context <ntg-context@ntg.nl <mailto:ntg-context@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@ntg.nl <mailto:ntg-context@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@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
> ___________________________________________________________________________________
Otared Kavian
e-mail: otared@gmail.com
Phone: +33 6 88 26 70 95
[-- Attachment #1.2: Type: text/html, Size: 7787 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@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
___________________________________________________________________________________
prev parent reply other threads:[~2023-02-27 14:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <313499664.497356.1677340869384.ref@mail.yahoo.com>
2023-02-25 16:01 ` Joel via ntg-context
2023-02-25 21:10 ` Hans Hagen via ntg-context
2023-02-26 10:55 ` Hans Hagen via ntg-context
2023-02-27 11:33 ` Jan-Erik Hägglöf via ntg-context
2023-02-27 11:53 ` mf via ntg-context
2023-02-27 12:00 ` Jan-Erik Hägglöf via ntg-context
2023-02-27 14:56 ` Otared Kavian 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=B8D7F34B-959F-4762-AC8E-493209582740@gmail.com \
--to=ntg-context@ntg.nl \
--cc=otared@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).