Some questions about luatex
hi some questions about luatex (www.luatex.org) 1) will be possible some code like \luatry{% ...tex code} \luaexcept{ ..tex code} 2) will be possible to embedding some other language ie Python (of course, reading the C source) ? Thanks in advance luigi
luigi scarso wrote:
hi some questions about luatex (www.luatex.org) 1) will be possible some code like \luatry{% ....tex code} \luaexcept{ ...tex code} 2) will be possible to embedding some other language ie Python (of course, reading the C source) ?
i'm not sure what you mean here \somelua{ lua code that may or may not give back tex input } if you mean that we can use lua for pretty printing, then the answer is yes, in my mkiv code there is already a lua based pretty printing framework Hans 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 -----------------------------------------------------------------
luigi scarso wrote:
hi some questions about luatex (www.luatex.org) 1) will be possible some code like \luatry{% ...tex code} \luaexcept{ ..tex code}
Guess at what you want: maybe, but not right away. The \luatry would have to save quite a bit of state information for this to be useful, which is not feasible on short notice (imagine having to save some 400+ globals and hooking into a few dozen data structure operations)
2) will be possible to embedding some other language ie Python (of course, reading the C source) ?
If you want to change the sources yourself, then yes. Otherwise no. If luatex were to allow this without recompile, nobody could rely on a stable platform for interchange of documents. Greetigngs, Taco
participants (3)
-
Hans Hagen
-
luigi scarso
-
Taco Hoekwater