Use different hyperref options for xetex.
Thanks to CircleCode.
This commit is contained in:
parent
951b0ca035
commit
bcd7edc492
1 changed files with 8 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue