Hi, concerning the hash ... i'd like to do the equivalent of: tex.def("\\", "\string\\") or, to avoid messing aroudn with parameters tex.set of course the previous def should be something tex.set("\string\\", "\string\string\string\\") but anyhow, it would permit defining macros in a non interfering way. For that we need two hooks: \everybeforelua \everyafterlua Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------