无法在 ConTeXt 中更改化妆品内的文字颜色?

无法在 ConTeXt 中更改化妆品内的文字颜色?

我正在尝试在 ConTeXt 中整理标题页。背景颜色设置正确,但文本颜色设置不正确。

\definemakeup
    [titlepage]
    [doublesided=no, page=right, headerstate=empty, footerstate=empty, before=\setups{titlepage:setups}]

\startsetups titlepage:setups
    \setupcolors[textcolor=red]
    \setupbackgrounds[page][background=color, backgroundcolor=yellow]
\stopsetups

\starttitlepagemakeup
    \startalignment[center]
        \tfd Some Title
        \blank[2cm]
        \tfa Some Author
    \stopalignment
\stoptitlepagemakeup

\setupcolors[textcolor=red]如果将它放置在化妆品外面,似乎确实有效。

上述我做错了什么?

答案1

使用color的参数\definemakeup(不要忘记\start...\stoptext)。

\definemakeup
    [titlepage]
    [doublesided=no,
     page=right,
     headerstate=empty,
     footerstate=empty,
     before=\setups{titlepage:setups},
     color=red]

\startsetups titlepage:setups
    %\setupcolors[textcolor=red]
    \setupbackgrounds[page][background=color, backgroundcolor=yellow]
\stopsetups

\starttext

\starttitlepagemakeup
    \startalignment[center]
        \tfd Some Title
        \blank[2cm]
        \tfa Some Author
    \stopalignment
\stoptitlepagemakeup

\stoptext

在此处输入图片描述

相关内容