[XeTeX] Problems with hyperref and bidi

Khaled Hosny khaledhosny at eglug.org
Fri Apr 25 22:19:52 CEST 2008


Thanks for the help, but this only solves my broblem links in the table
of contents (it seems that the "linktocpage=true" is the relevant option), 
but not in the document body. 

See the attached files.

On Sat, Apr 26, 2008 at 12:42:09AM +1000, VAFA KHALIGHI wrote:
> If you are producing a book or a report, then put these commands in your
> preamble: (You can vary the hyperref options to meet your needs or add anyother
> things)
>  
> %%%%%%%%%%%%
> \usepackage[xetex,dvipdfmx,bookmarks=true,bookmarksopen=true]{hyperref}
> 
> \hypersetup{
> 
> backref=true,
> 
> pdftitle={راهنمای رسم اشکال},
> 
> pdfauthor={وفا خلیقی},
> 
> pdfkeywords={},
> 
> bookmarksnumbered,
> 
> pagebackref=true,
> 
> breaklinks=true,
> 
> pdfview=FitH,
> 
> urlcolor=cyan,
> 
> colorlinks=true,
> 
> citecolor=blue,
> 
> linkcolor=red,
> 
> linktocpage=true,
> 
> hyperfootnotes=false,
> 
> }
> 
> \makeatletter
> 
> \renewcommand*\l at chapter[2]{%
> 
> \ifnum \c at tocdepth >\m at ne
> 
> \addpenalty{-\@highpenalty}%
> 
> \vskip 1.0em \@plus\p@
> 
> \setlength\@tempdima{1.5em}%
> 
> \begingroup
> 
> \parindent \z@ \rightskip \@pnumwidth
> 
> \parfillskip -\@pnumwidth
> 
> \leavevmode \bfseries
> 
> \advance\leftskip\@tempdima
> 
> \hskip -\leftskip
> 
> #1\nobreak\hfil \nobreak\hb at xt@\@pnumwidth{\hss \textroman{#2}}\par
> 
> \penalty\@highpenalty
> 
> \endgroup
> 
> \fi}
> 
> \makeatother
> %%%%%%%%%%%%%%%%%%
> 
>  
> 
> If you are producing an article, then put these commands in your preamble:
> 
>  
> 
> %%%%%%%%%%%%%%%%%%
> 
> \usepackage[xetex,dvipdfmx,bookmarks=true,bookmarksopen=true]{hyperref}
> 
> \hypersetup{
> 
> backref=true,
> 
> pdftitle={راهنمای رسم اشکال},
> 
> pdfauthor={وفا خلیقی},
> 
> pdfkeywords={},
> 
> bookmarksnumbered,
> 
> pagebackref=true,
> 
> breaklinks=true,
> 
> pdfview=FitH,
> 
> urlcolor=cyan,
> 
> colorlinks=true,
> 
> citecolor=blue,
> 
> linkcolor=red,
> 
> linktocpage=true,
> 
> hyperfootnotes=false,
> 
> }
> 
> \makeatletter
> 
> \renewcommand*\l at section[2]{%
> 
> \ifnum \c at tocdepth >\m at ne
> 
> \addpenalty{-\@highpenalty}%
> 
> \vskip 1.0em \@plus\p@
> 
> \setlength\@tempdima{1.5em}%
> 
> \begingroup
> 
> \parindent \z@ \rightskip \@pnumwidth
> 
> \parfillskip -\@pnumwidth
> 
> \leavevmode \bfseries
> 
> \advance\leftskip\@tempdima
> 
> \hskip -\leftskip
> 
> #1\nobreak\hfil \nobreak\hb at xt@\@pnumwidth{\hss \textroman{#2}}\par
> 
> \penalty\@highpenalty
> 
> \endgroup
> 
> \fi}
> 
> \makeatother
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%
> 
>  
> 
>  
> 
> 
> --
> PSTricks
> http://pstricks.wordpress.com/
> 

> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex


-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tex
Type: text/x-tex
Size: 1661 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20080425/df1ac420/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.pdf
Type: application/pdf
Size: 31434 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20080425/df1ac420/attachment-0001.pdf 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://tug.org/pipermail/xetex/attachments/20080425/df1ac420/attachment-0003.bin 


More information about the XeTeX mailing list