# \write and \immediate\write

Rodolfo Medina rodolfo.medina at gmail.com
Sat Jul 13 14:25:42 CEST 2019

```David Carlisle <d.p.carlisle at gmail.com> writes:

> a \write node does not introduce a breakpoint so it isn't directly because of
> the \write, do you have
>
> zzz\write20{zzzz}
>
> zzz
>
> which adds a glue node from the space  (and so a breakpoint) ?

It should be so, I added `\par\nobreak' just after the \write entry and the
break doesn't happen any more...  An example of the real situation is quite
difficult for me now to reproduce.

Thanks...

Rodolfo

> The other reason could be that a \write node affects the reference point of a
> box so
>
> \vtop{aaa} and \vtop{\write20{zzz}aaa} align differently, so once any box on
> the page is differently positioned all the page breaking decisions can
> change.
>
> On Sat, 13 Jul 2019 at 08:44, Rodolfo Medina <rodolfo.medina at gmail.com>
> wrote:
>
>  Dear TeXperts,
>
>  when I put \write...  in a certain point of my TeX document, I get there a
>  page
>  break that I don't want...  (Break that does not occur with
>  \immediate\write...)  Is there a way to avoid that break?  I can't reproduce
>  an
>  example right now, will try to do if necessary...  For now, if you have an
>  `\immediate' answer...  ;-)

```