Difference between revisions of "Command/usestaticMPfigure"

From Wiki
Jump to navigation Jump to search
(Created page with "{{Reference |name={{subst:SUBPAGENAME}} |attributes= }} == Syntax == <table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd...")
 
Line 24: Line 24:
 
== Description ==  
 
== Description ==  
  
Include a figure previously created with {{cmd|
+
Include a figure previously created with {{cmd|startstaticMPfigure}}
  
 
== Example ==
 
== Example ==

Revision as of 19:27, 25 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: