Difference between revisions of "Command/startMPcode old"

From Wiki
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...")
(No difference)

Revision as of 14:01, 26 November 2012

\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: