Use different hyperref options for xetex.

Thanks to CircleCode.
This commit is contained in:
John MacFarlane 2011-07-23 09:54:18 -07:00
parent 951b0ca035
commit bcd7edc492

View file

@ -58,7 +58,14 @@ $if(graphics)$
\let\Oldincludegraphics\includegraphics \let\Oldincludegraphics\includegraphics
\renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}} \renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
$endif$ $endif$
\usepackage[breaklinks=true,unicode=true,pdfborder={0 0 0}]{hyperref} \ifXeTeX
\usepackage[setpagesize=false, % page size defined by xetex
unicode=false, % unicode breaks when used with xetex
xetex]{hyperref}
\else
\usepackage[unicode=true]{hyperref}
\fi
\hypersetup{breaklinks=true, pdfborder={0 0 0}}
$if(strikeout)$ $if(strikeout)$
\usepackage[normalem]{ulem} \usepackage[normalem]{ulem}
% avoid problems with \sout in headers with hyperref: % avoid problems with \sout in headers with hyperref: