ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Meer, H. van der" <H.vanderMeer@uva.nl>
To: NTG ConTeXt <ntg-context@ntg.nl>
Subject: \startstaticMPfigure
Date: Mon, 19 Sep 2011 09:17:20 +0000	[thread overview]
Message-ID: <39E3FDAF-DA31-4FBB-B344-15DF5ABD0222@uva.nl> (raw)

From the Wiki I learn about \startstaticMPfigure that it "creates a separate pdf file containing the graphic". But when I exercise the example given I do not see those staticMPfigure's in sepaarte pdf's. What am I missing? I thought to use this for generating a series of separate pdf's, to be further processed as png/tiff files.

\startstaticMPfigure{center}
 draw fullcircle scaled 2cm ;
 dotlabel.bot (textext("(0,0)"),origin);
\stopstaticMPfigure
\startstaticMPfigure{radius}
 draw fullcircle scaled 2cm ;
 drawarrow (0,0)--(1cm,0);
 label.bot(textext("$r$"),(5mm,0)) ;
\stopstaticMPfigure
\starttext
Circle centered \usestaticMPfigure[center][width=1cm] at origin with radius \usestaticMPfigure[radius][width=1cm] $r=1\,\text{cm}$.
\stoptext

By the way, is transparency still working as in the wiki example below, or has transparency vanished?

\startreusableMPgraphic{a}
fill unitsquare scaled 1cm withcolor yellow;
fill unitsquare shifted (0.5,0.5) scaled 1cm withcolor transparent (1,0.5,red);
\stopreusableMPgraphic



\placefigure[force,none]{}{\reuseMPgraphic{a}}

Thanks in advance
Hans van der Meer

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


             reply	other threads:[~2011-09-19  9:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-19  9:17 Meer, H. van der [this message]
2011-09-19 10:03 ` \startstaticMPfigure Peter Rolf

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=39E3FDAF-DA31-4FBB-B344-15DF5ABD0222@uva.nl \
    --to=h.vandermeer@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).