[texhax] moreverb and write18 difficulty

Heiko Oberdiek heiko.oberdiek at googlemail.com
Sun Mar 6 00:47:29 CET 2011

On Sat, Mar 05, 2011 at 01:16:52PM -0800, Stephen Hicks wrote:

> [...] My initial guess was that the pertinent line in the .aux
> file should be written the output routine for the page, and since your
> \immediate\write18 would happen before the OR, there was no way it
> would see that line.

\label calls \write without \immediate. That means, the line will
be written at the time the material is shipped out (this is usually
done in the output routine (OR)).

> Without digging through the LaTeX source, I don't know off hand when
> the .aux file will be written.

LaTeX closes the main aux file in \end{document}. There isn't a
garantee that the file contents is flushed before and can
be read by another process.

Yours sincerely
  Heiko Oberdiek

More information about the texhax mailing list