[texhax] Writing explicit newline to external file

Toby Cubitt tsc25 at cantab.net
Fri Jun 8 12:57:15 CEST 2007


I asked this question in another thread, but I have a feeling it got 
buried amongst all my other comments and the replies, so I'm asking it 
again afresh.

Is there some way to write an explicit newline character to an external 
file in (La)TeX? None of the following seem to work:

\write\@stream{blah blah^^Mfoo bar}
\write\@stream{blah blah\\foo bar}
{\lccode`|=13 \lowercase{\write\@stream{blah blah|foo bar}}}

I know I could do this by writing one line at a time, using multiple 
writes, but this is unfortunately impossible for my purposes.

Any help much appreciated!

Thanks,

Toby Cubitt


More information about the texhax mailing list