ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: colors in MPgraphic
Date: Fri, 06 Jan 2006 15:19:46 +0100	[thread overview]
Message-ID: <43BE7C82.4060600@elvenkind.com> (raw)
In-Reply-To: <B53E89D8-1DF8-4D36-8A78-BFBFB7714A64@science.uva.nl>



Hans van der Meer wrote:
> In MPgrapic I do want my own colors for drawing lines etc.
> These are set up in plain.mf's ("_op_" and "background").
> In \startMPinclusions I just do that in order to get the drawing  color 
> I want.
> But then \startMPgraphic appears to reset colors (both "_op_" and  
> "background" I suspect).

The resetfig() macro from metafun clears "_op_" and "background".
I don't know why, but there''' be a reason for it, I am sure ;-)

There almost certainly is an 'official' way to add some statements to
the beginning of each figure, but, in any case, it works if you store
your settings in extra_beginfig:

   \startMPinclusions
   extra_beginfig := "drawoptions(withcolor green)";
   \stopMPinclusions


Cheers, Taco

  parent reply	other threads:[~2006-01-06 14:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-06 12:14 Hans van der Meer
2006-01-06 12:58 ` Mojca Miklavec
2006-01-06 14:08   ` Hans Hagen
2006-01-06 14:19 ` Taco Hoekwater [this message]
2006-01-06 16:27   ` Hans van der Meer
2006-01-06 17:56   ` Hans Hagen
2006-01-06 20:43     ` Hans van der Meer
2006-01-06 22:08       ` 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=43BE7C82.4060600@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).