Changes

Jump to navigation Jump to search
no edit summary
It was introduced in 2010 to reduce needed calls with lua.
Source: https://mailman.ntg.nl/archives/userslist/73e723be437f45319340df29d9b5c94cntg-context@ntg.nl/message/AIAWMGBFQQ5QPKNPOPDKFE4U3P4DZJDY/But it doesn't behave exactly the same.
Before With {{cmd|startMPcode}} :
<context source="yes">
\startluacode
context.MPdrawingdonetrue("text before") context.startMPdrawingstartMPcode() context("fill fullcircle scaled 2cm withcolor darkyellow;") context.stopMPdrawingstopMPcode() context("text after.getMPdrawing(")
\stopluacode
</context>
AfterWith {{cmd|MPcode}} :
<context source="yes">
\startluacode
context.MPdrawingdonetrue("text before") context.MPdrawingMPcode("fill fullcircle scaled 2cm withcolor darkgreen;") context("text after.getMPdrawing(")\stopluacode
</context></cd:description>
<cd:examples><cd:example title=""><context source="yes">
1,031

edits

Navigation menu