Changes

Jump to navigation Jump to search
m
remove category "since xxx" and "until", but keep info obviously, too complex for category browsing (not a versioning syst)
|attributes=
}}
 
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>defineMPinstance</syntax>
== [[Help:Reference|Syntax]] ==
== 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 specified as follows:* {{cmd|startMPcode}}. * {{cmd|useMPgraphic|{instancename::graphicname}|}}* {{cmd|startuseMPgraphic|{instancename::graphicname|}} since nov 2012.* {{cmd|startuseMPgraphic|{graphicname}|}} until nov 2012.
== Predefined Instances ==
draw textext("some text") ;
\stopMPcode
 
% a graphic that uses a custom instance
% This does not work with the current stable version
\startuseMPgraphic{veryimportant::mygraphic}
draw textext("some text") ;
\stopuseMPgraphic
 
\useMPgraphic{veryimportant::mygraphic}
\stoptext
== See also ==
<!-- something like {{cmd|gotoMetaPost see also}} --> {{cmd|setupMPinstance}}, [[Mpgraphic]]
== Help from ConTeXt-Mailinglist/Forum ==
{{Forum|{{SUBPAGENAME}}}}
[[Category:CommandsCommand/MetaPost|definestartstop]]

Navigation menu