[XeTeX] Is it possible

Jon Breitenbucher kahless at mac.com
Wed Mar 23 20:26:19 CET 2005


Jonathan,

It appears that phantom sections are not working. Everything else 
works. Here is an example for including the index in the contents with 
an active link to the index

\if at xetex
   \cleardoublepage
   \phantomsection
   \addcontentsline{toc}{chapter}{Index}
\else
   \ifpdf
     \cleardoublepage
     \phantomsection
     \addcontentsline{toc}{chapter}{Index}
   \else
     \cleardoublepage
     \addcontentsline{toc}{chapter}{Index}
   \fi
\fi

pdfLatex/hyperref will create a link to the top of the page where the 
index starts. XeLaTeX/hyperref creates a link to the top of the page 
before the blank page, i.e., the index starts on page 50 and the link 
in the contents takes you to the top of page 48 with 49 as a blank 
page. Thoughts?

On Mar 23, 2005, at 12:00 PM, Jonathan Kew wrote:

> On 23 Mar 2005, at 4:51 pm, Jon Breitenbucher wrote:
>
>> I'm trying to develop a thesis class which uses hyperref to produce a 
>> nice hyperlinked thesis. It all works fine in pdfLaTeX and I get a 
>> PDF which has a hyperlinked Table of Contents, references, and index. 
>> When I try to use XeLaTeX, the document processes and looks fine, but 
>> I don't have any of the active hyperlinks. I am using the dvipdfm 
>> option with hyperref when XeLaTeX is used, should I be doing 
>> something else, or is what I want to accomplish impossible at this 
>> stage?
>
> It ought to be possible. Are you viewing the resulting PDF with 
> Acrobat or with TeXShop/Preview? In my experience, Quartz-based PDF 
> viewers (e.g., TeXShop and Preview) don't support all the link types 
> that Acrobat does....and in particular, they don't support the links 
> that XeTeX generates.
>
> If the links don't work in Acrobat either, could you send me a small 
> example to test with?
>
> Thanks,
>
> JK
>
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
>
>
_____________________________________
Common sense is the collection of prejudices acquired by age eighteen. 
(Albert Einstein)

Prof. Jon Breitenbucher
The College of Wooster
Department of Mathematics and Computer Science
308 E. University
Wooster, Ohio 44691

work:	(330)263-2207
e-mail:	jbreitenbuch at wooster.edu
web:	http://jbreitenbuch.wooster.edu/~jonb
cal:	http://ical.mac.com/kahless/Work



More information about the XeTeX mailing list