ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans van der Meer <hansm@science.uva.nl>
Subject: Re: color in before=
Date: Wed, 25 Jan 2006 22:13:27 +0100	[thread overview]
Message-ID: <0B6DEAE5-5840-4F27-82FC-91DAF79A81ED@science.uva.nl> (raw)
In-Reply-To: <43D7D7B2.8070504@elvenkind.com>

Thanks, that worked. But it leads to my next question, I am afraid.

When I define:
	\definecolor [brightred][r=0.7, g=.1, b=.1]
then I can use this in \startcolor[brightred]...\stopcolor
according to \meaning brightred being \protected macro \switchtocolor  
[brightred]

Now I am fond of symbolic names and therefore also defined:
		\definecolor [FrameColor][brightred]
Thus being able to use FrameColor as \MPcolor{FrameColor} in MetaFun.
(\meaning says \MPcolor{FrameColor} is \scaledMPcolor 1Framecolor,  
\FrameColor being undefined)

I thought to use \MPcolor{FrameColor} also in
	\startcolor[\MPcolor{FrameColor}]...\stopcolor
or	\startcolor[FrameColor]...\stopcolor
but neither of these worked, nor did
{\switchtocolor[FrameColor]...}\crlf
{\switchtocolor[\MPcolor{FrameColor}]...}\crlf

How can I use FrameColor here to? Without defining extra macros  
around FrameColor, I hope.

On Jan 25, 2006, at 20:55, Taco Hoekwater wrote:

> Hans van der Meer wrote:
>> I suspect there is no way of sneaking in these []'s inside the
>> command? That is the general solution.
>
> \setupxyz[before={\color[green]{whatever}}]
>
> Cheers, Taco
> ______________________________________________


yours sincerely,
dr. H. van der Meer

  reply	other threads:[~2006-01-25 21:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-25 19:38 Hans van der Meer
2006-01-25 19:55 ` Taco Hoekwater
2006-01-25 21:13   ` Hans van der Meer [this message]
2006-01-26  9:01     ` Taco Hoekwater
2006-01-26  9:28     ` Hans van der Meer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0B6DEAE5-5840-4F27-82FC-91DAF79A81ED@science.uva.nl \
    --to=hansm@science.uva.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).