Chapter number in list colored (setuplist)
Hi, I want to color the chapter number in the table of content. The attribute "numbercolor" does not exist in setuplist. So I tried to color the chapter number via "numberstlye" ("numbercommand" is also not working): ---8<---------------------------- \define[1]\listChapterColor{\color[bordeaux]{X #1}} \setuplist[chapter][color=black,numberstyle=\listChapterColor] ----8<------------------------------ The X appears in the new color (bordeaux), but the chapter number is still uncolored - same color like rest of that line (black). What am I doing wrong here? H.
On Tue, 9 Jul 2013, Zenlima wrote:
Hi,
I want to color the chapter number in the table of content. The attribute "numbercolor" does not exist in setuplist. So I tried to color the chapter number via "numberstlye" ("numbercommand" is also not working):
---8<----------------------------
\define[1]\listChapterColor{\color[bordeaux]{X #1}}
\setuplist[chapter][color=black,numberstyle=\listChapterColor]
----8<------------------------------
The X appears in the new color (bordeaux), but the chapter number is still uncolored - same color like rest of that line (black).
What am I doing wrong here?
(Untested): Have you tried `numbercolor=bordeaux`? Aditya
Am 09.07.2013 um 18:08 schrieb Zenlima
Hi,
I want to color the chapter number in the table of content. The attribute "numbercolor" does not exist in setuplist. So I tried to color the chapter number via "numberstlye" ("numbercommand" is also not working):
---8<----------------------------
\define[1]\listChapterColor{\color[bordeaux]{X #1}}
\setuplist[chapter][color=black,numberstyle=\listChapterColor]
----8<------------------------------
The X appears in the new color (bordeaux), but the chapter number is still uncolored - same color like rest of that line (black).
What am I doing wrong here?
1. You forgot a minimal example which demonstrates the problem. 2. You didn’t test numbercolor. \setuplist [chapter] [color=green, numbercolor=red, %pagecolor=orange, textcolor=blue] \starttext \completecontent \chapter{Test} \stoptext Wolfgang
participants (3)
-
Aditya Mahajan
-
Wolfgang Schuster
-
Zenlima