[luatex] read and write streams
Markus Kohm
komascript at gmx.info
Thu Nov 19 20:10:38 CET 2015
Am Donnerstag, 19. November 2015, 18:48:53 schrieb jfbu:
> to be
> robust with respect to future enlargement of output streams for this task ?
\newrite\terminal
\immediate\write\terminal{Test}
As long, as you do not open the new write, it will write to terminal and log
file. BTW: For LaTeX you should simply use \typeout. So for generic code you
may use something like:
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname typeout\endcsname\relax
\newwrite\@typeout
\def\typeout{\immediate\write\@typeout}
\fi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part.
URL: <http://tug.org/pipermail/luatex/attachments/20151119/4f89a2ac/attachment-0001.bin>
More information about the luatex
mailing list