ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Mojca Miklavec" <mojca.miklavec.lists@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: staticMPfigure
Date: Fri, 11 Apr 2008 12:31:24 +0200	[thread overview]
Message-ID: <6faad9f00804110331k5248975bn9edd540491cda9bd@mail.gmail.com> (raw)
In-Reply-To: <47FF16D6.4050808@wxs.nl>

On Fri, Apr 11, 2008 at 9:44 AM, Hans Hagen wrote:
> Mojca Miklavec wrote:
>  > On Fri, Apr 11, 2008 at 12:23 AM, Aditya Mahajan wrote:
>  >> On Fri, 11 Apr 2008, Mojca Miklavec wrote:
>  >>
>  >>  > On Thu, Apr 10, 2008 at 11:41 PM, Aditya Mahajan wrote:
>  >>  >> On Thu, 10 Apr 2008, Hans Hagen wrote:
>  >>  >>
>  >>  >> > works ok on my machine using pdftex but luatex gives an unknown (have to
>  >>  >> > look into it)
>  >>  >>
>  >>  >>  Another test case, I ran into today.
>  >>  >>
>  >>  >>  \setupcolors[state=start,textcolor=red]
>  >>  >>
>  >>  >>  \starttext
>  >>  >>
>  >>  >>  \startMPcode
>  >>  >>    draw fullcircle scaled 2cm withcolor \MPcolor{\@@themaintextcolor} ;
>  >>  >
>  >>  > Do you mean \MPcolor{currentcolor}?
>  >>
>  >>  Hangs head in shame :(. I need to learn how to read the sources correctly.
>  >>
>  >>  Of course, currentcolor is much better than \@@themaintextcolor. I just
>  >>  did not know that it existed.
>  >
>  > Well ... I knew accidentally (since I have requested it). It's
>  > mentioned in \sometxt MyWay, but that's rather well hidden as well.
>
>  you just kept it secret ... i made 'currentcolor' for you -)

I know. MyWay about \sometxt mentions currentcolor, but it's kind of
tricky enough to find the proper manual with the needed information
when one is looking for it. Using \sometxt instead of btex ... etex
would be much more efficient as well, it has not been a secret, but I
have no idea how to best proliferate that information.

>  anyhow ... using commands with @@ in it is usually a bad idea
>
>  \unprotect
>
> \startMPcode
>  draw fullcircle scaled 2cm withcolor \MPcolor{\@@themaintextcolor} ;
>  \stopMPcode
>  \protect
>
>  might have worked

PS: Before "currentcolor" was there, the circle would have come out
red without having to use \MPcolor :-) You just had "bad luck" with it
:-)

Mojca
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2008-04-11 10:31 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.4251.1207220924.4340.ntg-context@ntg.nl>
2008-04-10 15:57 ` staticMPfigure Wolfgang Werners-Lucchini
2008-04-10 16:10   ` staticMPfigure Hans Hagen
2008-04-10 21:41     ` staticMPfigure Aditya Mahajan
2008-04-10 22:01       ` staticMPfigure Mojca Miklavec
2008-04-10 22:23         ` staticMPfigure Aditya Mahajan
2008-04-10 22:38           ` staticMPfigure Mojca Miklavec
2008-04-11  7:44             ` staticMPfigure Hans Hagen
2008-04-11 10:31               ` Mojca Miklavec [this message]
2008-04-11 12:16                 ` staticMPfigure Hans Hagen
2008-06-10 10:02 staticMPfigure bbvogel
2008-06-10 12:50 ` staticMPfigure Hans Hagen
2008-06-10 13:31   ` staticMPfigure bbvogel
2008-06-10 14:18     ` staticMPfigure Peter Rolf
2008-06-11  6:57       ` staticMPfigure bbvogel
2008-06-11  9:41         ` staticMPfigure bbvogel
2008-06-11 10:07         ` staticMPfigure Peter Rolf
2008-06-11 11:41           ` staticMPfigure bbvogel
2008-06-11 12:27             ` staticMPfigure Peter Rolf
  -- strict thread matches above, loose matches on Subject: below --
2008-04-02 20:22 staticMPfigure Wolfgang Werners-Lucchini
2008-04-03  9:12 ` staticMPfigure Taco Hoekwater
2008-04-03 10:19   ` staticMPfigure 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=6faad9f00804110331k5248975bn9edd540491cda9bd@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.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).