Hi, In order to experiment we need: (1) \luadef\cs goal: starts an lua instance usage: \luadef\lua (2) \luastring{...} goal: escapes problematic chars usage: \lua{str = "\luastring{blabla "bla"}"} (3) \immediate\luacs goal: feeds back into the token scanner (no need for scantokens, faster due to less parameter passing) usage: \immediate\lua{tex.print("$x$")} (4) tables: tex.print pdf.print (literal, so we need something pdf.print(str,optional_type) in order to handle the now keywords to \pdfliteral hartmut may have ideas on other other pdf entries (since he already has done some experiments) further, taco and i discussed a lua extension using a variant of strings using 32 bit entries, partly for the unicode chars and partly for the \cs etc pointers so that we can do stringlike thinsg with token lists well, we discussed more, but i need to search my memory -) 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 -----------------------------------------------------------------