Difference between revisions of "Command/startstaticMPfigure"

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...")
 
m (Taco moved page Environment/staticMPfigure to Command/startstaticMPfigure over a redirect without leaving a redirect)
 
(7 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>startstaticMPfigure</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
Line 44: Line 47:
  
 
== See also ==
 
== See also ==
 
+
{{MetaPost see also}}
* {{cmd|usestaticMPfigure|[''name'']}}  
 
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==
Line 51: Line 53:
 
{{Forum|startstaticMPfigure}}
 
{{Forum|startstaticMPfigure}}
  
[[Category:Commands|startstaticMPfigure]]
+
[[Category:Command/MetaPost|startstaticMPfigure]]

Latest revision as of 09:48, 7 August 2020

\startstaticMPfigure

Syntax (autogenerated)

\startstaticMPfigure{...} ... \stopstaticMPfigure
{...}name


Syntax

\startstaticMPfigure{...}
{...} name

Description

\startstaticMPfigure{name} creates a separate pdf file called name.pdf containing the graphic. This pdf can be included in the document using \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 *.mp.md5 files from the current directory.

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: