Difference between revisions of "Command/startMPcode old"

From Wiki
Jump to navigation Jump to search
m (Categorize page.)
m (Taco moved page Command/startMPcode to Command/startMPcode old without leaving a redirect)
 
(8 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>startMPcode</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
Line 50: Line 53:
 
{{Forum|startMPcode}}
 
{{Forum|startMPcode}}
  
[[Category:Commands|MetaPost|startMPcode]]
+
[[Category:Command/MetaPost|startMPcode]]

Latest revision as of 19:15, 12 September 2023

\startMPcode

Syntax (autogenerated)

\startMPcode{...} ... \stopMPcode
{...}metafun minifun extrafun lessfun doublefun binaryfun decimalfun mprun metapost nofun doublepost binarypost decimalpost simplefun


Syntax

\startMPcode
\startMPcode{...}
{...} name of a MetaPost instance defined with \defineMPinstance

Description

\startMPcode simply runs some MetaPost code and immediately inserts the resulting graphic. Optionally, you can specify a MetaPost instance to use; see \defineMPinstance.

Example

\starttext
This is the origin and radius of a circle:
\startMPcode
    draw fullcircle scaled 2cm ;
    dotlabel.bot(textext("(0,0)"),origin) ;
\stopMPcode 
\startMPcode
    draw fullcircle scaled 2cm ;
    drawarrow (0,0)--(1cm,0) ;
    label.bot(textext("$r$"),(5mm,0)) ;
\stopMPcode
\stoptext

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: