我是 ConTeXt 的新手,在“自然表格”中标题的颜色方面遇到了问题。我希望标题中的文本显示为白色,而不是灰色。以下是我现在的情况
\setuppapersize[letter]
\language[fr]
\setupbodyfont[12pt,ss]
\enableregime[utf]
\setupcolors[state=start]
\definecolor[white][r=1,g=1,b=1]
\definecolor[darkblue][r=.22,g=.42,b=.52]
\definecolor[grayWriting][r=.31,g=.31,b=.31]
\definecolor[grayPale][r=.92,g=.94,b=.95]
\definecolor[graySub][r=.75,g=.83,b=.87]
\starttext
\startcolor[grayWriting]
\setuphead[subject][style=bold,14pt,rm]
\subject{Subject}
\setupTABLE[row][even]
[background=color,backgroundcolor=white,frame=off]
\setupTABLE[row][odd]
[background=color,backgroundcolor=grayPale,frame=off]
\setupTABLE[header][each]
[background=color,backgroundcolor=darkblue,textcolor=white,style=bold]
\setupTABLE[c][each][width=.25\textwidth]
\bTABLE[frame=off,align=right,split=repeat,option=stretch]% head on every page,
\bTABLEhead
\bTR
\bTH ~ \eTH
\bTH H2 \eTH
\bTH H3 \eTH
\bTH H4 \eTH
\eTR
\eTABLEhead
\bTABLEnext % setup for next table head
\bTR
\bTH ~ \eTH
\bTH H2 \eTH
\bTH H3 \eTH
\bTH H4 \eTH
\eTR
\eTABLEnext
\bTABLEbody
\bTR
\bTD 1 \eTD
\bTD 2 \eTD
\bTD 3 \eTD
\bTD 4 \eTD
\eTR
\bTR
\bTD 1 \eTD
\bTD 2 \eTD
\bTD 3 \eTD
\bTD 4 \eTD
\eTR
\bTR
\bTD 1 \eTD
\bTD 2 \eTD
\bTD 3 \eTD
\bTD 4 \eTD
\eTR
\bTR
\bTD 1 \eTD
\bTD 2 \eTD
\bTD 3 \eTD
\bTD 4 \eTD
\eTR
\eTABLEbody
\eTABLE
\stoptext
输出结果为
任何帮助都将不胜感激。我知道我可以{\color[white] H1}
在标题单元格中写入,但我真的想避免这样做。
答案1
尝试
\setupTABLE[header][each][...,foregroundcolor=white,...]