* Can ConTeXt display a simple itemized list as a comma-separated list?
[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
0 siblings, 2 replies; 7+ messages in thread
From: Joel via ntg-context @ 2023-02-25 16:01 UTC (permalink / raw)
To: Mailing List for ConTeXt Users; +Cc: Joel
[-- Attachment #1.1: Type: text/plain, Size: 258 bytes --]
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
--Joel
[-- Attachment #1.2: Type: text/html, Size: 1132 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Can ConTeXt display a simple itemized list as a comma-separated list?
2023-02-25 16:01 ` Can ConTeXt display a simple itemized list as a comma-separated list? Joel via ntg-context
@ 2023-02-25 21:10 ` Hans Hagen via ntg-context
2023-02-26 10:55 ` Hans Hagen via ntg-context
1 sibling, 0 replies; 7+ messages in thread
From: Hans Hagen via ntg-context @ 2023-02-25 21:10 UTC (permalink / raw)
To: Joel via ntg-context; +Cc: Hans Hagen
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
it's not that hard to add a few lines to the core to support that, so
i'll look into it
-----------------------------------------------------------------
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@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Can ConTeXt display a simple itemized list as a comma-separated list?
2023-02-25 16:01 ` Can ConTeXt display a simple itemized list as a comma-separated list? 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
1 sibling, 1 reply; 7+ messages in thread
From: Hans Hagen via ntg-context @ 2023-02-26 10:55 UTC (permalink / raw)
To: Joel via ntg-context; +Cc: Hans Hagen
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@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Can ConTeXt display a simple itemized list as a comma-separated list?
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 14:56 ` Otared Kavian via ntg-context
0 siblings, 2 replies; 7+ messages in thread
From: Jan-Erik Hägglöf via ntg-context @ 2023-02-27 11:33 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Jan-Erik Hägglöf
[-- Attachment #1.1: Type: text/plain, Size: 2075 bytes --]
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@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@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
> ___________________________________________________________________________________
[-- Attachment #1.2.1: Type: text/html, Size: 1105 bytes --]
[-- Attachment #1.2.2: test.log --]
[-- Type: application/octet-stream, Size: 11269 bytes --]
system >
system > ConTeXt ver: 2023.02.23 21:26 LMTX fmt: 2023.2.27 int: english/english
system >
system > 'cont-new.mkxl' loaded
open source > level 1, order 1, name '/Users/janneman/CTX/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system > beware: some patches loaded from cont-new.mkiv
close source > level 1, order 1, name '/Users/janneman/CTX/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system > files > jobname './test', input './test.tex', result './test'
fonts > latin modern fonts are not preloaded
languages > language 'en' is active
open source > level 1, order 2, name './test.tex'
fonts > preloading latin modern fonts (third stage)
fonts > 'fallback modern rm 12pt' is loaded
backend > xmp > using file '/Users/janneman/CTX/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages > flushing realpage 1, userpage 1, subpage 1
close source > level 1, order 2, name './test.tex'
system > start used files
system > text: test
system > stop used files
system > start used files
system > 1: filename=publ-imp-default.lua filetype=lua foundname=/Users/janneman/CTX/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua fullname=/Users/janneman/CTX/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua usedmethod=database
system > 2: filename=cont-new.mkxl filetype=tex foundname=/Users/janneman/CTX/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl fullname=/Users/janneman/CTX/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl usedmethod=database
system > 3: filename=lang-exc.lua filetype=lua foundname=/Users/janneman/CTX/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua fullname=/Users/janneman/CTX/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua usedmethod=database
system > 4: filename=lang-us.lua filetype=lua foundname=/Users/janneman/CTX/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua fullname=/Users/janneman/CTX/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua usedmethod=database
system > 5: filename=/Users/janneman/Documents/CONTEXTDOC/Privat/itemizing/test.tex format=tex foundname=/Users/janneman/Documents/CONTEXTDOC/Privat/itemizing/test.tex fullname=/Users/janneman/Documents/CONTEXTDOC/Privat/itemizing/test.tex usedmethod=direct
system > 6: filename=lang-sv.lua filetype=lua foundname=/Users/janneman/CTX/tex/texmf-context/tex/context/patterns/mkiv/lang-sv.lua fullname=/Users/janneman/CTX/tex/texmf-context/tex/context/patterns/mkiv/lang-sv.lua usedmethod=database
system > 7: filename=lm.lfg filetype=tex foundname=/Users/janneman/CTX/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg fullname=/Users/janneman/CTX/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg usedmethod=database
system > 8: filename=lmroman10-regular filetype=otf format=otf foundname=/Users/janneman/CTX/tex/texmf/fonts/data/gust/lm/lmroman10-regular.otf fullname=/Users/janneman/CTX/tex/texmf/fonts/data/gust/lm/lmroman10-regular.otf usedmethod=database
system > 9: filename=latinmodern-math.otf filetype=otf format=otf foundname=/Users/janneman/CTX/tex/texmf/fonts/data/gust/lm/latinmodern-math.otf fullname=/Users/janneman/CTX/tex/texmf/fonts/data/gust/lm/latinmodern-math.otf usedmethod=database
system > 10: filename=modern-math.lfg filetype=tex foundname=/Users/janneman/CTX/tex/texmf-context/tex/context/fonts/mkiv/modern-math.lfg fullname=/Users/janneman/CTX/tex/texmf-context/tex/context/fonts/mkiv/modern-math.lfg usedmethod=database
system > 11: filename=common-math.lfg filetype=tex foundname=/Users/janneman/CTX/tex/texmf-context/tex/context/fonts/mkiv/common-math.lfg fullname=/Users/janneman/CTX/tex/texmf-context/tex/context/fonts/mkiv/common-math.lfg usedmethod=database
system > 12: filename=lpdf-pdx.xml filetype=tex foundname=/Users/janneman/CTX/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml fullname=/Users/janneman/CTX/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml usedmethod=database
system > stop used files
system > start commandline options
system > currentrun="1"
system > fulljobname="./test.tex"
system > input="./test.tex"
system > kindofrun="1"
system > maxnofruns="9"
system > texmfbinpath="/Users/janneman/CTX/tex/texmf-osx-64/bin"
system > stop commandline options
system > start commandline files
system > 1: ./test.tex
system > stop commandline files
modules > start used modules
modules > stop used modules
system >
system > status after finishing run
system >
system > -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
system > string pool hash lookup node token buffer input file nest parameter save font language mark insert
system > -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
system > max 2097152 100000000 2097152 2097152 100000000 10000000 100000000 100000 2000 10000 100000 500000 100000 10000 10000 500
system > min 150000 10000000 150000 150000 2000000 1000000 1000000 10000 500 1000 20000 100000 250 250 50 10
system > set 500000 10000000 250000 250000 50000000 10000000 10000000 100000 2000 10000 100000 500000 100000 250 250 250
system > stp 100000 1000000 100000 100000 500000 250000 1000000 10000 250 1000 10000 10000 250 250 50 25
system >
system > mem 150000 947416 150000 2000000 1000000 1000000 10000 500 1000 20000 10000 6379840 144 1200 320
system > all 2400000 947416 2400000 18000000 8000000 1000000 320000 16000 72000 80000 160000 6379840 144 28800 10240
system >
system > ini 2144902 903209 0 47734 0 523294 0
system > ptr 49621 9804 49605 558472 0 0 0 0 0 0 7 0 0 7
system > top 49622 740853 131074 5512 574754 215 40 5 12 40 355 250 250 50 10
system > -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
system >
system > current input type : initial
system >
system > approximate memory : 43159048 (41 MB)
system >
system > expansion depth : min: 10000, max: 1000000, set: 10000, top: 10
system >
system > luabytecode registers : 1007
system > luabytecode bytes : 16128 (0 MB)
system > luastate bytes now : 60737164 (57 MB)
system > luastate bytes max : 60737164 (57 MB)
system >
system > file callbacks : 76
system > saved callbacks : 195
system > direct callbacks : 2
system > function callbacks : 1062
system > value callbacks : 2
system > message callbacks : 0
system > bytecode callbacks : 612
system >
system > mp instances : 0
system > mp estimated memory : 0 (0 MB)
system > mp file callbacks : 0
system > mp text callbacks : 0
system > mp script callbacks : 0
system > mp log callbacks : 0
system >
system > total callbacks : 1949
system > mp total callbacks : 0
system > backend callbacks : 0
system >
mkiv lua stats > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats > used cache path: /Users/janneman/CTX/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats > resource resolver: loadtime 0.007 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 12 found files, scanned paths: <none>
mkiv lua stats > stored bytecode data: 507 modules (0.316 sec), 105 tables (0.017 sec), 612 chunks (0.333 sec)
mkiv lua stats > traced context: maxstack: 1662, freed: 0, unreachable: 1662
mkiv lua stats > cleaned up reserved nodes: 73 nodes, 7 lists of 434
mkiv lua stats > node memory usage: 9 attribute, 1 glue, 125 gluespec, 3 kern, 645 mathspec, 2 penalty, 2 temp
mkiv lua stats > node list callback tasks: 13 unique task lists, 9 instances (re)created, 57 calls
mkiv lua stats > used backend: pdf
mkiv lua stats > jobdata time: 0.002 seconds saving, 0.001 seconds loading
mkiv lua stats > callbacks: file: 76, saved: 195, direct: 2, function: 1062, value: 2, message: 0, bytecode: 612, late 0, total: 1949 (1949 per page)
mkiv lua stats > randomizer: resumed with value 0.073112850061558
mkiv lua stats > loaded patterns: en::1 sv::5, load time: 0.000
mkiv lua stats > loaded fonts: 2 files: latinmodern-math.otf, lmroman10-regular.otf
mkiv lua stats > font engine: otf 3.133, afm 1.513, tfm 1.000, 7 instances, 3 shared in backend, 3 common vectors, 0 common hashes, load time 0.315 seconds
mkiv lua stats > math tweaking time: 0.116 seconds, 12 math goodie tables
mkiv lua stats > font embedding time: 0.004 seconds, 1 fonts
mkiv lua stats > result saved in file: test.pdf, compresslevel 1, objectcompresslevel 3
mkiv lua stats > positions: 4 collected, 0 deltas, 0 shared partials, 0 partial entries
mkiv lua stats > used platform: osx-64, type: unix, binary subtree: texmf-osx-64
mkiv lua stats > used engine: luametatex version: 2.1006, functionality level: 20230224, format id: 686, compiler: clang
mkiv lua stats > tex properties: 740853 hash slots used of 2097152, 49605 control sequences, approximate memory usage: 41 MB
mkiv lua stats > lua properties: engine: lua 5.4, used memory: 60 MB, ctx: 58 MB, max: 58 MB, symbol mask: utf (τεχ)
mkiv lua stats > runtime: 0.863 seconds, 1 processed pages, 1 shipped pages, 1.158 pages/second
[-- Attachment #1.2.3: Type: text/html, Size: 219 bytes --]
[-- Attachment #1.2.4: test.pdf --]
[-- Type: application/pdf, Size: 5873 bytes --]
[-- Attachment #1.2.5: Type: text/html, Size: 219 bytes --]
[-- Attachment #1.2.6: test.tex --]
[-- Type: application/octet-stream, Size: 245 bytes --]
\mainlanguage[sv]
\setupbodyfont[12pt]
\defineitemgroup
[fooditems]
\setupitemgroup
[fooditems]
[each]
[none,text]
[textseparator=,]
\starttext
\startfooditems
\item fish
\item eggs
\item milk
\stopfooditems
\stoptext
[-- Attachment #1.2.7: Type: text/html, Size: 3638 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Can ConTeXt display a simple itemized list as a comma-separated list?
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
1 sibling, 1 reply; 7+ messages in thread
From: mf via ntg-context @ 2023-02-27 11:53 UTC (permalink / raw)
To: Jan-Erik Hägglöf via ntg-context; +Cc: mf
\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@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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Can ConTeXt display a simple itemized list as a comma-separated list?
2023-02-27 11:53 ` mf via ntg-context
@ 2023-02-27 12:00 ` Jan-Erik Hägglöf via ntg-context
0 siblings, 0 replies; 7+ messages in thread
From: Jan-Erik Hägglöf via ntg-context @ 2023-02-27 12:00 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Jan-Erik Hägglöf
[-- Attachment #1.1: Type: text/plain, Size: 5179 bytes --]
I added the braces but still no difference, still empty between items
Jan-Erik Hägglöf
skrantajanneman@gmail.com
ConTeXt ver: 2023.02.23 21:26 LMTX fmt: 2023.2.27 int: english/english
> 27 feb. 2023 kl. 12:53 skrev mf via ntg-context <ntg-context@ntg.nl>:
>
> \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@ntg.nl <mailto:ntg-context@ntg.nl> <mailto: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/> <http://www.pragma-ade.nl <http://www.pragma-ade.nl/>> | www.pragma-pod.nl <http://www.pragma-pod.nl/><http://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> <mailto: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><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/> <https://www.pragma-ade.nl <https://www.pragma-ade.nl/>> / http://context.aanhet.net <http://context.aanhet.net/><http://context.aanhet.net <http://context.aanhet.net/>>
>>> archive : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/> <https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>>
>>> wiki : https://contextgarden.net <https://contextgarden.net/> <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 <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 <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/>
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 24450 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Can ConTeXt display a simple itemized list as a comma-separated list?
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 14:56 ` Otared Kavian via ntg-context
1 sibling, 0 replies; 7+ messages in thread
From: Otared Kavian via ntg-context @ 2023-02-27 14:56 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Otared Kavian
[-- 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-02-27 14:56 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <313499664.497356.1677340869384.ref@mail.yahoo.com>
2023-02-25 16:01 ` Can ConTeXt display a simple itemized list as a comma-separated list? 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 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).