[XeTeX] Polyglossia problems with package lastpage

Andreas Hoenen andreas at hoenen-terstappen.de
Wed Dec 16 22:01:58 CET 2009


Hi,

polyglossia doesn't seem to work with package lastpage for several
languages:

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
\documentclass{minimal}
\usepackage{polyglossia}
\setdefaultlanguage{hebrew}
\setmainfont{DejaVu Sans}
\usepackage{xltxtra}
\usepackage{lastpage}
\begin{document}
\pageref{LastPage}
\end{document}
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

The compilation output ends with:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Runaway text?

LaTeX Warning: Reference `LastPage' on page {\font \zf at basefont ="Dej\ETC.
! Forbidden control sequence found while scanning text of \write.
<inserted text>
                }
l.10 \pageref{LastPage}

?
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Similar problems for arabic and farsi, however it works well e.g. for
russian.  Thus it might be related to "right to left" languages.

BTW, I'm using TeX Live 2009 as packaged in Debian/sid.

Thanks for any ideas/hints, Andreas
-- 
Andreas Hoenen <andreas at hoenen-terstappen.de>
GPG: 1024D/B888D2CE
     A4A6 E8B5 593A E89B 496B
     82F0 728D 8B7E B888 D2CE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20091216/a067ae2c/attachment.bin>


More information about the XeTeX mailing list