Changes

Jump to navigation Jump to search
no edit summary
== 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 Custom styles can inherit from the <code>metafun</code> instance, or not.
The MetaPost instance to use is provided specified as first argument to <code>\follows:* {{cmd|startMPcode</code> }}. * {{cmd|useMPgraphic|{instancename::graphicname}|}}* {{cmd|startuseMPgraphic|{instancename::graphicname|}}{{since|2012|nov 2012}}* {{cmd|startuseMPgraphic|{graphicname}|}}{{Until|2012|nov 2012}}or <code>\{{cmd|startuseMPgraphic</code>}}. In the latter case the figure name is separated by a double-colon from the instance name.{{since|2012|nov 2012}} Before november 2012
== Predefined Instances ==
\stopMPcode
% a graphic that uses a custom instance
% This
\startuseMPgraphic{veryimportant::mygraphic}
draw textext("some text") ;

Navigation menu