Hello everyone, I tested the code and it does not work: I get one page with buttons for animation is not working. thank you, Fabrice \def\MyGraphics#1{% \unexpanded\def\MyGraphics#1{% \startMPcode path p,q; p:=fullcircle scaled 72; L:=length p; N:=20; q:=subpath (0,#1/N*L) of p; draw q withcolor red; fill fullcircle scaled 3 shifted point length q of q withcolor blue; setbounds currentpicture to unitsquare shifted (-0.5,-0.5) scaled 75; \stopMPcode}} \usemodule[animation] \setupinteraction[state=start] \starttext \startanimation[menu=yes] {\MyGraphics {5}} {\MyGraphics {10}} {\MyGraphics {15}} {\MyGraphics {20}} \stopanimation \stoptext fab@debian:~$ context ntg43.tex resolvers | trees | analyzing 'home:texmf' mtx-context | run 1: luatex --fmt="/home/fab/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --jobname="ntg43" --lua="/home/fab/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./ntg43.tex" --c:input="./ntg43.tex" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv" This is LuaTeX, Version beta-0.88.0 (TeX Live 2016/dev) system commands enabled. resolvers > trees > analyzing 'home:texmf' system > callbacks > not registering frozen 'find_format_file' open source > 1 > 1 > /home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv ConTeXt ver: 2016.01.18 22:21 MKIV beta fmt: 2016.1.22 int: english/english system > 'cont-new.mkiv' loaded open source > 2 > 2 > /home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv close source > 2 > 2 > /home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv system > files > jobname 'ntg43', input './ntg43', result 'ntg43' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > 2 > 3 > /home/fab/ntg43.tex resolvers > modules > 'animation' is loaded open source > 3 > 4 > /home/fab/context/tex/texmf-modules/tex/context/third/animation/t-animation.mkvi close source > 3 > 4 > /home/fab/context/tex/texmf-modules/tex/context/third/animation/t-animation.mkvi fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded open source > 3 > 5 > /home/fab/context/tex/texmf-context/tex/context/base/mkiv/java-imp-fld.mkiv close source > 3 > 5 > /home/fab/context/tex/texmf-context/tex/context/base/mkiv/java-imp-fld.mkiv interactions > javascripts > loaded: library 'fld' backend > xmp > using file '/home/fab/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1 close source > 2 > 5 > /home/fab/ntg43.tex close source > 1 > 5 > /home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv mkiv lua stats > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua mkiv lua stats > used cache path: /home/fab/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e mkiv lua stats > resource resolver: loadtime 0.025 seconds, 1 scans with scantime 0.013 seconds, 0 shared scans, 13 found files, scanned paths: /home/fab/texmf mkiv lua stats > stored bytecode data: 383 modules (0.240 sec), 81 tables (0.011 sec), 464 chunks (0.251 sec) mkiv lua stats > traced context: maxstack: 1169, freed: 9, unreachable: 1160 mkiv lua stats > cleaned up reserved nodes: 42 nodes, 9 lists of 443 mkiv lua stats > node memory usage: 2 glue, 2 penalty, 9 attribute, 27 glue_spec, 3 attribute_list, 2 temp, 1 pdf_literal mkiv lua stats > node list callback tasks: 6 unique task lists, 6 instances (re)created, 44 calls mkiv lua stats > used backend: pdf (backend for directly generating pdf output) mkiv lua stats > jobdata time: 0.001 seconds saving, 0.000 seconds loading mkiv lua stats > callbacks: 226 direct, 1256 indirect, 1482 total mkiv lua stats > randomizer: resumed with value 0.6945844393664 mkiv lua stats > loaded tex modules: 1 requested, all found (*-animation) mkiv lua stats > loaded patterns: en::2, load time: 0.000 mkiv lua stats > interactive elements: 5 references, 0 destinations mkiv lua stats > result saved in file: ntg43.pdf, compresslevel 3, objectcompresslevel 3 mkiv lua stats > loaded fonts: 3 files: contnav.afm, latinmodern-math.otf, lmroman12-regular.otf mkiv lua stats > font engine: otf 3.012, afm 1.500, tfm 1.000, 5 instances, load time 0.196 seconds mkiv lua stats > pdf annotations: 5 links (5 unique), 4 special mkiv lua stats > used platform: linux-64, type: unix, binary subtree: texmf-linux-64 mkiv lua stats > luatex banner: this is luatex, version beta-0.88.0 (tex live 2016/dev) mkiv lua stats > control sequences: 43642 of 65536 + 100000 mkiv lua stats > lua properties: engine: lua, used memory: 57 MB (ctx: 57 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ) mkiv lua stats > runtime: 0.516 seconds, 1 processed pages, 1 shipped pages, 1.938 pages/second system | total runtime: 0.742 seconds 2016-01-22 15:45 GMT+01:00 Jeong Dal : > Dear Hans, Wolfgang > > Thank you for the solutions. > > “\unexpanded …” method is working well. > > It can make the class materials more interesting. > > Thanks again. > > Best regards, > > Dalyoung > > > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ >