\def\Title{\dodoubleempty\doTitle}
\def\doTitle[#1][#2]{
 \ifsecondargument
     \testpage[#2]
 \else
     \testpage[10]
 \fi
 \startalignment[center]
 {
     \blank[2*big]
     \switchtobodyfont[1.5em]
     \bf\em#1
 }
 \blank
 \stopalignment
}

Vianney

On Mon, Jan 3, 2011 at 10:46, Cecil Westerhof <cldwester...@gmail.com> wrote:
> I have the folowing function for a title:
> \def\Title[#1]{
>  \testpage[10]
>  \startalignment[center]
>  {
>      \blank[2*big]
>      \switchtobodyfont[1.5em]
>      \bf\em#1
>  }
>  \blank
>  \stopalignment
> }
>
> What I would like is that there is an optional second parameter. When
> it is there, it is used in the testpage command. Otherwise the default
> value is used. How would I do this?
>
> --
> Cecil Westerhof
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to