summaryrefslogtreecommitdiff
path: root/doc/context/sources/general/manuals/metafun/metafun-sneaky.tex
diff options
context:
space:
mode:
Diffstat (limited to 'doc/context/sources/general/manuals/metafun/metafun-sneaky.tex')
-rw-r--r--doc/context/sources/general/manuals/metafun/metafun-sneaky.tex9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/context/sources/general/manuals/metafun/metafun-sneaky.tex b/doc/context/sources/general/manuals/metafun/metafun-sneaky.tex
index b02ce2dab..b8ff1c30b 100644
--- a/doc/context/sources/general/manuals/metafun/metafun-sneaky.tex
+++ b/doc/context/sources/general/manuals/metafun/metafun-sneaky.tex
@@ -159,9 +159,12 @@ The result is predictable:
Of course there is also a \type {cld} approach possible:
+% context.startMPpage { offset = "10pt" }
+% context.stopMPpage()
+
\startbuffer
\startluacode
- context.startMPcode() -- context.startMPpage { offset = "10pt" }
+ context.startMPcode()
for i=0,100,20 do
context ( [[draw fullcircle scaled (%s * cm)
withcolor "darkmagenta" withpen pencircle scaled 1cm ;]], i)
@@ -170,7 +173,7 @@ Of course there is also a \type {cld} approach possible:
context ( [[draw fullcircle scaled (%s * cm)
withcolor "darkcyan" withpen pencircle scaled 1cm ;]], i)
end
- context.stopMPcode() -- context.stoppage()
+ context.stopMPcode()
\stopluacode
\stopbuffer
@@ -186,8 +189,6 @@ All these methods are rather efficient because all happens in memory and without
intermediate runs. It is this kind of features that the tight integration of \TEX,
\METAPOST\ and \LUA\ make possible.
-\stoptext
-
\stopsection
\stopchapter