Hi, (for module writers) The latest beta gives access to modes at the lua end \starttext \enablemode[test] \enablemode[xxxx] \doifallmodes{test,xxx}{NO} \doifallmodes{test,xxxx}{YES} \doifmode{test}{YES} \doifnotmode{xxx}{YES} \startluacode tex.sprint(tex.modes['x'] and "YES" or "NOP") tex.sprint(tex.modes['xx'] and "YES" or "NOP") tex.sprint(tex.modes['xxx'] and "YES" or "NOP") tex.sprint(tex.modes['xxxx'] and "YES" or "NOP") tex.sprint(tex.modes['test'] and "YES" or "NOP") \stopluacode \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------