# [XeTeX] bidi or arabxetex problem with fancyhdr

Ulrike Fischer news2 at nililand.de
Mon Jul 14 16:09:41 CEST 2008

Am Sun, 13 Jul 2008 17:06:55 +0000 (UTC) schrieb Mehdi Omidali:

> I compiled the following lines with xelatex (0.999.2 on both windows and linux)
>

>
> This code works without any problem but if you comment the second chapter, then
> numbers of pages 5 and 6 will be printed on the top right of pages.
> Any clue what is happening?

Put a \newpage before the \end{farsi} (so that xetex gets a chance to
finish the page before changing the direction).

--
Ulrike Fischer