# [texhax] checking if a piece of text stays on one line or more than one line

Wed Oct 12 11:13:08 CEST 2011

```On Wed, Oct 12, 2011 at 02:36:12PM +1100, Vafa Khalighi wrote:

> thanks for this. Do you know why my posted minimal example did not work as
> soon as I added \beginR?

* The whatits are processed in reverse order. Therefore I have also
added \pdfsavepos (\zref at savepos) also behind the label setting.

* And the detection of the direction is done by an additional
auxiliary label

Yours sincerely
Heiko Oberdiek
```