[XeTeX] Polyglossia problems with package lastpage
Gareth Hughes
garzohugo at gmail.com
Wed Dec 16 23:25:50 CET 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andreas Hoenen wrote:
> 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
This is definitely a bidi problem. Lastpage is clearly doing something
that doesn't fit in with bidi. I'm sure Vafa will have the best idea
what's going on here.
Gareth.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iD8DBQFLKV5u9UDttp8yrx4RApAGAJ9fzotzHx0NasNLDB+MYZH720JqxwCguEYQ
Jwv2KmTdxGOllJuTbzRSbwY=
=z7/x
-----END PGP SIGNATURE-----
More information about the XeTeX
mailing list