Difference between revisions of "Command/usestaticMPfigure"

From Wiki
Jump to navigation Jump to search
({{MetaPost see also}})
Line 49: Line 49:
  
 
== See also ==
 
== See also ==
 
+
{{MetaPost see also}}
* {{cmd|startstaticMPfigure}}
 
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==

Revision as of 11:37, 26 November 2012

\usestaticMPfigure

Syntax

\usestaticMPfigure[...][...]
[...] figure name
[...] see \useexternalfigure

Description

Include a figure previously created with \startstaticMPfigure

Example

\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

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: