* Coloured section headings
@ 2000-05-17 14:43 Christopher G D Tipper
2000-05-17 15:19 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Christopher G D Tipper @ 2000-05-17 14:43 UTC (permalink / raw)
Hi all,
I want to typeset section headings in color. At the moment I have something like
\definehead
[esection]
[section]
\setuphead [esection]
[number=no,
textstyle=bold,
style=\ss]
command=\color[blue]{#1}]
and then later on
\esection[thing]{This is section thing}
but it complains
! You can't use `macro parameter character #' in horizontal mode.
I'm very confused by the use of 'command' in the language reference.
Many thanks for any help,
Christopher
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Coloured section headings
2000-05-17 14:43 Coloured section headings Christopher G D Tipper
@ 2000-05-17 15:19 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2000-05-17 15:19 UTC (permalink / raw)
Cc: ConTeXT Mailing List
At 05:43 PM 5/17/2000 +0300, Christopher G D Tipper wrote:
>I want to typeset section headings in color. At the moment I have
something like
>
>\definehead
> [esection]
> [section]
>
>\setuphead [esection]
> [number=no,
> textstyle=bold,
> style=\ss]
> command=\color[blue]{#1}]
This should be
\def\MyColor#1{\color[blue]{#1}}
and
command=\MyColor
but, the real way to do it is (!!!!!!!!!!!!!!!!!!):
color=blue
or:
textcolor=blue,numbercolor=red
which saves you some typing -) Don't forget to enable colors with
\setupcolors[state=start]
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-05-17 15:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-17 14:43 Coloured section headings Christopher G D Tipper
2000-05-17 15:19 ` Hans Hagen
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).