[NTG-context] How to define a command...
Wolfgang Schuster
schuster.wolfgang at googlemail.com
Thu Jan 5 21:21:06 CET 2012
Am 05.01.2012 um 21:11 schrieb Meer, H. van der:
> Reccently I did something random in ctxlua. I post it in the hope it will be useful.
>
> Hans van der Meer
>
> \startluacode
> -- Define our namespace as hvdm
> hvdm = hvdm or {}
Don’t use a global namespace, you can use “userdata”.
userdata = userdata or { }
userdata.hvdm = userdata.hvdm or { }
Wolfgang
More information about the ntg-context
mailing list