ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \startstaticMPfigure
@ 2011-09-19  9:17 Meer, H. van der
  2011-09-19 10:03 ` \startstaticMPfigure Peter Rolf
  0 siblings, 1 reply; 2+ messages in thread
From: Meer, H. van der @ 2011-09-19  9:17 UTC (permalink / raw)
  To: NTG ConTeXt

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: \startstaticMPfigure
  2011-09-19  9:17 \startstaticMPfigure Meer, H. van der
@ 2011-09-19 10:03 ` Peter Rolf
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Rolf @ 2011-09-19 10:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-19 10:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-19  9:17 \startstaticMPfigure Meer, H. van der
2011-09-19 10:03 ` \startstaticMPfigure Peter Rolf

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).