[luatex] writing in output files
Hans Hagen
pragma at wxs.nl
Tue Feb 17 20:58:03 CET 2009
Elie Roux wrote:
> Hello,
>
> How can we write with pure lua in a file opened with TeX? What I'd like
> to do is something like
>
> \openout2=test2.aux
> \write2{tutu}
> titi
> \directlua0{texio.write(2, "titi")}
> \bye
>
> Of course, texio.sprint("\write2{titi}") is forbiden, as the idea would
> be to eventually overwrite \write...
tex.sprint("\write2{titi}")
is ok and of course you can use io.open and friends
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
-----------------------------------------------------------------
More information about the luatex
mailing list