Changes

Jump to navigation Jump to search
Created page with "{{Reference |name=startMPcode |attributes= }} == Syntax == <table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd">\startMP..."
{{Reference
|name=startMPcode
|attributes=
}}

== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\startMPcode</td>
</tr>
</table>

== Description ==
{{cmd|startMPcode}} simply runs some MetaPost code and immediately inserts the resulting graphic.

== Example ==
<context source=yes>
\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
</context>

== See also ==
{{MetaPost see also}}

== Help from ConTeXt-Mailinglist/Forum ==
All issues with:
{{Forum|startMPcode}}

[[Category:Commands|startMPcode]]

Navigation menu