[XeTeX] Problems with hyperref and bidi
VAFA KHALIGHI
vafa.khalighi at students.mq.edu.au
Fri Apr 25 16:42:09 CEST 2008
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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xetex/attachments/20080426/bee4409d/attachment-0001.html
More information about the XeTeX
mailing list