1

I would like to change numberstyle or {front|body|back|appendix}partlabel style in \setuphead, however it seems they are somehow associated:

\setuplabeltext[en][chapter={Chapter~}]

\setuphead[chapter][bodypartlabel=chapter]


\starttext
\chapter{A chapter}
\stoptext

enter image description here

\setuplabeltext[en][chapter={Chapter~}]

\setuphead[chapter][bodypartlabel=chapter,
                    numbercolor=red]


\starttext
\chapter{A chapter}
\stoptext

enter image description here

How can I dissociate them ? Or at least modify one without modifying the other ?

0

1 Answer 1

1

The key deepnumbercommand let you pass a command so it only affects the number and not labels:

\setuplabeltext[en][chapter=Chapter~]

\setuphead[chapter][bodypartlabel=chapter,
deepnumbercommand={\color[red]}]


\starttext
\chapter{A chapter}
\stoptext

You must log in to answer this question.