ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: metafun & \sometxt: should black be "black" or "textcolor"?
Date: Mon, 07 Aug 2006 10:15:31 +0200	[thread overview]
Message-ID: <44D6F6A3.9050502@elvenkind.com> (raw)
In-Reply-To: <6faad9f00608070104o40c3041cq70c6666ab3179090@mail.gmail.com>



Mojca Miklavec wrote:
> 
> The "real problem" appears in the following figure where the first
> black is ignored and the second one is not, so it's rather
> inconsistent:

It is not really inconsistent, the rule is very simple:

   all use of "withcolor <black>" upto the first non-zero color
   is ignored by metapost.

> I can image a "fair solution" to draw "withcolor black" in black and
> to let the parts with no explicit color and an empty drawoptions()
> string to use the "default color" (perhaps with gsave/grestore). But
> I'm not entitled to judge about it.

Yes, that's what I thought. But I need to patch metapost for
that, so that solution won't be available in a reliable way
for quite some time yet.

> In any case I'll have to use a solution which will not depend on this
> behaviour. Is there any chance to get "withcolor somecolor", where
> "somecolor" is the color set with "textcolor=somecolor"?

Maybe withcolor \MPcolor{textcolor} ? (I am guessing)

Cheers, Taco

  reply	other threads:[~2006-08-07  8:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-06  2:32 Mojca Miklavec
2006-08-06  8:52 ` Taco Hoekwater
2006-08-06 11:26   ` Mojca Miklavec
2006-08-06 14:37     ` Taco Hoekwater
2006-08-06 17:02       ` Mojca Miklavec
2006-08-06 21:48       ` Hans Hagen
2006-08-06 22:02       ` Hans Hagen
2006-08-07  8:04         ` Mojca Miklavec
2006-08-07  8:15           ` Taco Hoekwater [this message]
2006-08-07  9:40             ` Mojca Miklavec
2006-08-07 10:25               ` Hans Hagen

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=44D6F6A3.9050502@elvenkind.com \
    --to=taco@elvenkind.com \
    --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).