Am 02.10.2025 um 23:13 schrieb jbf:
It is the opposite I need: uppercase in the main text and lower case in
the TOC. Here below is how I achieved it:
Did you even try my example?
\define[2]\MyChapterCommand%
{\framed[frame=on,bottomframe=on,leftframe=off,rightframe=off,topframe=off,align=middle]
{\vbox{\headtext{chapter} ##1\blank[small]##2}}}
\setuphead[chapter][
header=empty,
alternative=middle,
style={\ssc},
after=\blank,
command=\MyChapterCommand,
sectionsegments=chapter,
sectionresetset=jbfreset,
number=yes,
after={\blank[1cm]}
]
\setuplabeltext[chapter=CHAPTER ,list:chapter=Chapter ,]
\setupcombinedlist
[content]
[list={chapter}]
\setuplist[chapter][label=list:chapter,distance=1.3cm,style=,alternative=c,margin=.5cm,stopper={:
},before=,after=]
There is nothing special happen here, you're just assigning a different
label for the list entry.
When you use \setuplist[figure][label=yes] ConTeXt changes this to
"label=figure" but you're free to set a certain label as argument.
%%%% begin example
\setuplabeltext [en] [whatever=Hoofdstuk ,somethingelse=Kapitel ]
\setuplist
[chapter]
[label=whatever,
width=6em]
\setuphead
[chapter]
[bodypartlabel=somethingelse]
\starttext
\completecontent
\chapter{XXX}
\stoptext
%%%% end example
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________