Difference between revisions of "Command/startMPcode old"
< Command
Jump to navigation
Jump to search
m (Taco moved page Command/startMPcode to Environment/MPcode) |
m (Text replacement - "<syntax>start" to "<syntax type=“environment”>") |
||
Line 5: | Line 5: | ||
== [[Help:Reference|Syntax]] (autogenerated) == | == [[Help:Reference|Syntax]] (autogenerated) == | ||
− | <syntax> | + | <syntax type=“environment”>MPcode</syntax> |
== [[Help:Reference|Syntax]] == | == [[Help:Reference|Syntax]] == |
Revision as of 19:43, 24 July 2020
\startMPcode
Syntax (autogenerated)
\MPcode{...}{...} | |
{...} | metafun minifun extrafun lessfun doublefun binaryfun decimalfun mprun metapost nofun doublepost binarypost decimalpost simplefun |
{...} | content |
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
- \defineMPinstance
- \setupMPinstance
- \startMPinclusions
- \startMPenvironment — deprecated
- \startMPcode
- \startuseMPgraphic — dynamic graphics that are recompiled at every use
- \useMPgraphic — use a dynamic graphic
- \startuniqueMPgraphic — dynamic graphics that are recompiled when parameters (width, height, depth, background color, line color) change
- \uniqueMPgraphic — use a dynamic graphic
- \startreusableMPgraphic — static graphics that are compiled once
- \reuseMPgraphic — use a static graphic
- \startstaticMPfigure — standalone graphics
- \usestaticMPfigure — use a standalone graphic
- \startMPpage — a page just large enough to fit its MetaPost contents
- MetaFun - MetaPost in ConTeXt
Help from ConTeXt-Mailinglist/Forum
All issues with: