1,467 bytes added
, 19:07, 25 November 2012
{{Reference
|name=startstaticMPfigure
|attributes=
}}
== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\startstaticMPfigure<!--
--><span class="first">{...}</span><!--
--></td>
</tr>
<tr valign="top" class="first">
<td class="cmd">{...}</td>
<td>''name''</td>
</tr>
</table>
== Description ==
{{cmd|startstaticMPfigure|{name}|}} creates a separate pdf file called ''name''.pdf containing the graphic. This pdf can be included in the document using {{cmd|usestaticMPfigure}}. ConTeXt is clever enough to recompile the resulting MetaPost file only if something inside the \startstaticMPgraphic has changed. To force the figure files to be regenerated, remove all the <code>*.mp.md5</code> files from the current directory.
== Example ==
<texcode>
\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
</texcode>
== See also ==
* {{cmd|usestaticMPfigure|[''name'']}}
== Help from ConTeXt-Mailinglist/Forum ==
All issues with:
{{Forum|startstaticMPfigure}}
[[Category:Commands|startstaticMPfigure]]