From bcd7edc492e144476f681a9823a459ca0293e672 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 23 Jul 2011 09:54:18 -0700 Subject: Use different hyperref options for xetex. Thanks to CircleCode. --- default.latex | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3