diff options
author | John MacFarlane <jgm@berkeley.edu> | 2011-07-23 09:54:18 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2011-07-23 09:54:18 -0700 |
commit | bcd7edc492e144476f681a9823a459ca0293e672 (patch) | |
tree | 34f588e6919ea4b4b4eb5546b79bdd8faee43fb5 | |
parent | 951b0ca035245e29a09a64056fe3aaae1c679cd3 (diff) | |
download | pandoc-bcd7edc492e144476f681a9823a459ca0293e672.tar.gz |
Use different hyperref options for xetex.
Thanks to CircleCode.
-rw-r--r-- | default.latex | 9 |
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: |