[NTG-context] Color in footer

2009-10-14 Thread Antoine Cailliau
Dear all,

I'm trying to change the color of the
footer text. I typed:

\def\footerstyle#1{\startcolor[red]#1\stopcolor}
\setupfooter[style=\footerstyle]

But I receive an error that I can't
interpret. 

! Argument of \footerstyle has an extra }.
inserted text 
\par 
to be read again 
   }
\doifdefinedelse #1-\edef \p!defined {#1}
  \ifcsname \detokenize \...@ea
{\p!def...

\doconvertfont #1-\doifdefinedelse {...@letter@ #1}
   {\doifelsenothing
{#1}\go...

\doattributes ... \csname #1...@ea \endcsname \fi 
  {#4}\dostopattributes 
\dosingletexts ...atetexts {#1#2#5}{#6{}{}{}}}
  \egroup 
...
l.61 \stoptext
  
? X

Does anyone knows what's wrong ?

Thanks in advance,

Antoine C.

___
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
___


Re: [NTG-context] Color in footer

2009-10-14 Thread Hans Hagen

Antoine Cailliau wrote:

Dear all,

I'm trying to change the color of the
footer text. I typed:

\def\footerstyle#1{\startcolor[red]#1\stopcolor}
\setupfooter[style=\footerstyle]


has to do with the fact that style does not pass an argument

does

\setupfooter[color=red]

work?

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Color in footer

2009-10-14 Thread Antoine Cailliau
Dear,

  \def\footerstyle#1{\startcolor[red]#1\stopcolor}
  \setupfooter[style=\footerstyle]
 
 has to do with the fact that style does not pass an argument
 
 does
 
 \setupfooter[color=red]
 
 work?
Yes, perfectly. I did not tried it since
this was not documented (or at least I may
misread the documentation).

Thank you a lot,

Antoine C.

___
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
___