Hi Ruini,
by the way, maybe this is what you wanted:
==
\unexpanded\def\mybig
{\dosingleempty\dosanhao}
\unexpanded\def\dosanhao[#1]%
{\iffirstargument
\switchtobodyfont[#1]%
\else
\switchtobodyfont[24pt]%
\fi}
\setuphead
[chapter]
[style=
Hi Ruini,
Since \dosanhao has nothing to do with it's argument, why not just define like
\def\mybig
{\switchtobodyfont[24pt]}
On Sun, Oct 26, 2008 at 3:55 PM, Ruini Xue <[EMAIL PROTECTED]> wrote:
> I want to use a dedicated font size for the chapter title, so I wrote this
> piece of code:
>
> %
I want to use a dedicated font size for the chapter title, so I wrote this
piece of code:
%%
\def\mybig%
{\dosingleempty\dosanhao}
\def\dosanhao[#1]%
{\switchtobodyfont[24pt]}
\setuphead
[chapter]
[style=\mybig]
\starttext
\chapter{hello, world}
\stoptext
%%%