Changes

Jump to navigation Jump to search
Created page with "Documentation for \startMPdrawing ... \stopMPdrawing"
<cd:commandgroup name="MPdrawing" type="environment" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc><!-- a short command summary goes here -->
The environment <tt>\startMPdrawing ... \stopMPdrawing</tt> is used for Metapost inline graphics.
</cd:shortdesc>
<cd:variants>
<cd:command category="graphics" file="meta-ini.mkiv" interfacedate="2020-07-14T09:24" interfacefile="i-metapost.xml" keywords="metapost" level="document" name="MPdrawing" type="environment" variantnumber="1">
<cd:arguments>
<cd:keywords optional="yes" ordinal="1">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="-"></cd:constant>
</cd:keywords>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description><!-- the long description of the command goes here -->

Similar to the command {{cmd|MPdrawing}}.</cd:description>
<cd:examples><cd:example title=""><context source="yes">
\startluacode
context.startMPdrawing()
context("fill fullcircle scaled 2cm withcolor darkyellow;")
context.stopMPdrawing()
context("text before")
context.MPdrawingdonetrue()
context.getMPdrawing()
context("text after")
\stopluacode
</context></cd:example><cd:example title=""><context source="yes">
\startMPdrawing
fill fullcircle scaled 2cm withcolor darkyellow;
\stopMPdrawing

text before
\MPdrawingdonetrue
\getMPdrawing
text after
</context></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:source file="meta-ini.mkiv" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Graphics"></cd:wikipage>
<cd:wikipage originator="system" page="Keywords:Metapost"></cd:wikipage></cd:seealso>
</cd:commandgroup>
1,031

edits

Navigation menu