ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Color in footer
@ 2009-10-14  9:05 Antoine Cailliau
  2009-10-14 10:11 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Antoine Cailliau @ 2009-10-14  9:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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#2\@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Color in footer
  2009-10-14  9:05 Color in footer Antoine Cailliau
@ 2009-10-14 10:11 ` Hans Hagen
  2009-10-14 12:00   ` Antoine Cailliau
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2009-10-14 10:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Color in footer
  2009-10-14 10:11 ` Hans Hagen
@ 2009-10-14 12:00   ` Antoine Cailliau
  0 siblings, 0 replies; 3+ messages in thread
From: Antoine Cailliau @ 2009-10-14 12:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-10-14 12:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-14  9:05 Color in footer Antoine Cailliau
2009-10-14 10:11 ` Hans Hagen
2009-10-14 12:00   ` Antoine Cailliau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).