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 -----------------------------------------------------------------
Am 2010-10-14 um 15:57 schrieb Hans Hagen:
(for module writers)
The latest beta gives access to modes at the lua end
Wikified (unmodified): http://wiki.contextgarden.net/Modes#Modes_in_LuaTeX Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
participants (2)
-
Hans Hagen
-
Henning Hraban Ramm