Command/startMPcode old

From Wiki
< Command
Revision as of 14:01, 26 November 2012 by Esteis (talk | contribs) (Created page with "{{Reference |name=startMPcode |attributes= }} == Syntax == <table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd">\startMP...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

\startMPcode

Syntax

\startMPcode

Description

\startMPcode simply runs some MetaPost code and immediately inserts the resulting graphic.

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: