[XeTeX] cross references and hyperref

Pablo Rodríguez oinos at web.de
Sat Aug 18 12:32:19 CEST 2007


Peter Dyballa wrote:
> Am 17.08.2007 um 21:06 schrieb Pablo Rodríguez:
> 
>> check this reference: \pageref{refer} (and this one: \ref{refer}).
>> \cleardoublepage
>> \label{refer}This is the reference.
> 
> Why aren't you or your friend using \hypertarget and \hyperlink? For  
> me these *ref's used belong to plain LaTeX ...

Thanks for the answer, Peter. I didn't know of these. This is rather
weird, since \pageref works fine when linked to labels in footnotes and
it works fine for me when linked to text body in other lengthy
documents. (There must be something wrong somewhere.)

> 	check this reference: \hyperlink{refer}{\pageref{refer}} (and this  
> one: \hyperlink{refer}{\ref{refer}}).
> 	\cleardoublepage
> 	\hypertarget{refer}{\label{refer}This is the reference.}

It works, but I get an error:

No dvi filename specified, reading standard input.DVI Comment:  XeTeX
output 2007.08.18:1220
stdin -> b.pdf
[1<cmsl10 at 9.96pt(TFM:cmsl10[/usr/share/texmf/fonts/tfm/public/cm/cmsl10.tfm])
fontmap: cmsl10 -> cmsl10[remap]

pdf_font>> Simple font "cmsl10" enc_id=<builtin,-1> opened at
font_id=<cmsl10,0>.
><cmr10 at 9.96pt(TFM:cmr10[/usr/share/texmf/fonts/tfm/public/cm/cmr10.tfm])
fontmap: cmr10 -> cmr10[remap]

pdf_font>> Simple font "cmr10" enc_id=<builtin,-1> opened at
font_id=<cmr10,1>.
><cmbx12 at 14.35pt(TFM:cmbx12[/usr/share/texmf/fonts/tfm/public/cm/cmbx12.tfm])
fontmap: cmbx12 -> cmbx12[remap]

pdf_font>> Simple font "cmbx12" enc_id=<builtin,-1> opened at
font_id=<cmbx12,2>.
>
** WARNING ** Can't begin an annotation when one is pending.
** WARNING ** Interpreting special command bann (pdf:) failed.
** WARNING ** >> at page="1" position="(198.858, 686.163)" (in PDF)
** WARNING ** >> xxx "pdf:bann << /Type /Annot /Subtype /Link /Border[0
0 1]/C [1 ..."
** WARNING ** >> Reading special command stopped around >><< /Type
/Annot /Subtype /Link /Border[0 0 1]/C [1 0 0] /A <...<<

Current input buffer is -->pdf:bann << /Type /Annot /Subtype /Link
/Border[0 ...<--

** WARNING ** Tried to end an annotation without starting one!
** WARNING ** Interpreting special command eann (pdf:) failed.
** WARNING ** >> at page="1" position="(203.839, 686.163)" (in PDF)
** WARNING ** >> xxx "pdf:eann"

Current input buffer is -->pdf:eann<--
][2][3](cmsl10[CMSL10][built-in][Type1][11 glyphs][1580
bytes])(cmr10[CMR10][built-in][Type1][23 glyphs][2825
bytes])(cmbx12[CMBX12][built-in][Type1][11 glyphs][1243 bytes])
Compression eliminated approximately 1354 bytes
12856 bytes written
Output written on b.pdf (3 pages).

Thanks for your help,


Pablo


More information about the XeTeX mailing list