Open main menu

Changes

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/list/ntg-context@ntg.nl/message/AIAWMGBFQQ5QPKNPOPDKFE4U3P4DZJDY/But it doesn't behave exactly the same. With {{cmd|startMPcode}} : <context source="yes">\startluacode context("text before") context.startMPcode() context("fill fullcircle scaled 2cm withcolor darkyellow;") context.stopMPcode() context("text after.")\stopluacode</context> With {{cmd|MPcode}} : <context source="yes">\startluacode context("text before") context.MPcode("fill fullcircle scaled 2cm withcolor darkgreen;") context("text after.")\stopluacode</context></cd:description>
<cd:examples><cd:example title=""><context source="yes">
1,005

edits