aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2011-07-23 09:54:18 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2011-07-23 09:54:18 -0700
commitbcd7edc492e144476f681a9823a459ca0293e672 (patch)
tree34f588e6919ea4b4b4eb5546b79bdd8faee43fb5
parent951b0ca035245e29a09a64056fe3aaae1c679cd3 (diff)
downloadpandoc-bcd7edc492e144476f681a9823a459ca0293e672.tar.gz
Use different hyperref options for xetex.
Thanks to CircleCode.
-rw-r--r--default.latex9
1 files changed, 8 insertions, 1 deletions
diff --git a/default.latex b/default.latex
index bd9af92e0..989455320 100644
--- a/default.latex
+++ b/default.latex
@@ -58,7 +58,14 @@ $if(graphics)$
\let\Oldincludegraphics\includegraphics
\renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
$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)$
\usepackage[normalem]{ulem}
% avoid problems with \sout in headers with hyperref: