[XeTeX] fontspec and hyperref
Ulrike Fischer
news3 at nililand.de
Thu Sep 24 09:01:41 CEST 2009
Am Wed, 23 Sep 2009 15:05:21 -0700 schrieb Michiel Kamermans:
> Hi,
>
> I'm running into a problem using fontspec in combination with hyperref,
> with the attached file.
>
> Using xetex 3.1415926-2.2-0.999.7 (MiKTeX 2.7), fontspec 2008/08/09
> v1.18 and hyperref 2008/12/26 v6.78n I get the following error:
>
> >> Package hyperref Warning: Token not allowed in a PDF string
> (PDFDocEncoding):
> >> (hyperref) removing `\fontspec' on input line
> 68/84/86/89.
>
> and then XeTeX goes into unrecoverable error mode because a low level
> font definition does not exist...
hyperref is trying to simplify the code for the bookmarks.
Try
\section{....\texorpdfstring{text with \fontspec...}{simpler
text}....}
You can also try to add \fontspec like \ruby to
\pdfstringdefDisableCommands.
--
Ulrike Fischer
More information about the XeTeX
mailing list