[XeTeX] xdvipdfmx 0.3 and PDF annotations
Pablo Rodríguez
oinos at web.de
Mon Dec 4 13:28:39 CET 2006
Jonathan Kew wrote:
> On 4 Dec 2006, at 11:23 am, Pablo Rodríguez wrote:
>> The minimal example bellow shows that annotations
>> don't work when spanish is selected as main language in babel.
>
> This seems to be because babel's spanish option makes the < and >
> into active characters, and they then misbehave when used to
> construct a dictionary in the pdf annotation.
>
> To work around this, you could wrap the annotation in \foreignlanguage
> {english}{....}, thus:
>
> \documentclass{article}
> \usepackage[spanish]{babel}
> \begin{document}
> \foreignlanguage{english}{\special{pdf: ann width 7cm height 5cm
> << /Type /Annot /Subtype /Text /Open true
> /Contents (χαλεπὰ τὰ καλά) >>}}
> hola
> \end{document}
Many thanks, Jonathan. It works fine now.
Pablo
More information about the XeTeX
mailing list