Changes

Jump to navigation Jump to search
no edit summary
Similar to the environment {{cmd|startMPcode}} but see the example.
<tt>\MPcode</tt> introduces an horizontal space after, and the bouding bounding box of the graphic keep the drawing origine (more accurate description, and/or more explanation probably required).  It was introduced in 2010 to reduce needed calls with lua.Source: https://mailman.ntg.nl/archives/users/73e723be437f45319340df29d9b5c94c/ Before : <context source="yes">\startluacode context.MPdrawingdonetrue() context.startMPdrawing() context("fill fullcircle scaled 2cm withcolor darkyellow;") context.stopMPdrawing() context.getMPdrawing()\stopluacode</context> After <context source="yes">\startluacode context.MPdrawingdonetrue() context.MPdrawing("fill fullcircle scaled 2cm withcolor darkgreen;") context.getMPdrawing()</context></cd:description>
<cd:examples><cd:example title=""><context source="yes">
1,031

edits

Navigation menu