ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Peter Rolf <indiego@gmx.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \startstaticMPfigure
Date: Mon, 19 Sep 2011 12:03:46 +0200	[thread overview]
Message-ID: <4E771382.1020702@gmx.net> (raw)
In-Reply-To: <39E3FDAF-DA31-4FBB-B344-15DF5ABD0222@uva.nl>

Am 19.09.2011 11:17, schrieb Meer, H. van der:
>>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
>
Use mkii and you will get the files. Probably no need for this kind of
runtime optimization in mkiv.

> By the way, is transparency still working as in the wiki example below, or has transparency vanished?
>
The transparency example works here (slightly outdated version from
05.09.2011). BTW: there are four new transparency modes
(hue,saturation,color,luminosity).

Best wishes,  Peter

> \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
> ___________________________________________________________________________________
> 

___________________________________________________________________________________
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 10:03 UTC|newest]

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

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=4E771382.1020702@gmx.net \
    --to=indiego@gmx.net \
    --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).