Changes

Jump to navigation Jump to search
Add info about MPinstance separated by double-colon
== Description ==
This command sets up a custom MetaPost style with particular features that can be selected using the first argument. The instance <code>metafun</code> is the default one and does not need to be created. However, custom styles can inherit from the <code>metafun</code> instance.
 
The MetaPost instance is provided as first argument to <code>\startMPcode</code> or <code>\startuseMPgraphic</code>. In the latter case the figure name is separated by a double-colon from the instance name.
== Predefined Instances ==
draw textext("some text") ;
\stopMPcode
 
\startuseMPgraphic{veryimportant::mygraphic}
draw textext("some text") ;
\stopuseMPgraphic
 
\useMPgraphic{veryimportant::mygraphic}
\stoptext
69

edits

Navigation menu