[texhax] Alignment in a \newwrite file?

geolsoft at mail.ru geolsoft at mail.ru
Mon Aug 23 18:06:47 CEST 2004

On Sun, Aug 22, 2004 at 07:02:45PM +0200, Rodolfo Medina wrote:
> It is curious that, if I want to insert a \refn{label} 
> inside a `\putstuffoverthere' command,
> I have to write \noexpand\refn{label} instead of simply \refn{label}.
> But it *does* expand actually, when it has to.

With \noexpand, \refn gets expanded on the reading phase,
not on the writing phase.  Without \noexpand, it expands on
the writing phase, thus on the reading phase the low-level
commands to which \refn expanded cause trouble.  (Compare
contents of bluefile.tex after a single run of TeX on
myfile.tex with and without \noexpand.)

Best regards,
Oleg Katsitadze

More information about the texhax mailing list