Changes

Jump to navigation Jump to search
added method=scaled double
<td class="cmd">initializations</td>
<td>yes no </td>
</tr>
<tr valign="top" class="second">
<td class="cmd">method</td>
<td>scaled double </td>
</tr>
<tr valign="top" class="second">
This command sets up the default MetaPost instance <code>metafun</code> or a custom MetaPost instance previously defined with {{cmd|defineMPinstance}}.
 
The <code>extensions</code> and <code>initializations</code> keys control whether the content of the <code>\startMPextensions</code> and <code>\startMPinitializations</code> environment is used or ignored in the metapost code.
 
'''Note''': the <code>textstyle</code> and <code>textcolor</code> keys only work when <code>initializations=yes</code> is set.
== Usage ==
Another example using the <code>setups</code> key:
<texcodecontext source="yes" mode="mkiv" text="produces">
\defineMPinstance
[mpinstanceprefixed]
\stoptext
</texcodecontextThe above code prints: <pre>normal textprefix: red text</pre> “normal text” is printed in black, as well as “prefix:”, only “red text” is printed in red.
== See also ==
<!-- something like {{cmd|gotoMetaPost see also}} --> {{cmd|defineMPinstance}}, [[Mpgraphic]] 
== Help from ConTeXt-Mailinglist/Forum ==
{{Forum|{{SUBPAGENAME}}}}
[[Category:CommandsCommand/MetaPost|setupMPinstance]]
148

edits

Navigation menu