[texhax] Macro or environment for writing latex text to a file

Eduardo M KALINOWSKI ekalin at gmail.com
Fri Dec 21 15:40:48 CET 2007

Tobias Nipkow wrote:
> Hi,
> I need a macro or latex environment for writing blocks of latex text to 
> a file. I have tried \write, but it is confined to single lines. I would 
> like something like
> \tofile{f}{...}
> which writes the latex text ... to file f. The main requirement is that 
> the text can span several lines.
> Please be so kind to reply to nipkow at in.tum.de, I am not a regular 
> texhax subscriber.

What you need is the verbatimwrite environment of the moreverb package.

He who knows others is wise.
He who knows himself is enlightened.
		-- Lao Tsu

ekalin at gmail.com

More information about the texhax mailing list