diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-10-20 14:59:38 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-10-20 14:59:38 -0700 |
commit | 06fe6706f1b0655185248cc0c1ee3d2e187ec07d (patch) | |
tree | 491d85b48215afafdba2efa014ef0d27b8695dfb /default.latex | |
parent | d2ae8a577bcf80a36fa6e9fdb5e06564fdd7cbd9 (diff) | |
parent | a84f822c30fde1802131c1c7d69d6ebae4550f72 (diff) | |
download | pandoc-06fe6706f1b0655185248cc0c1ee3d2e187ec07d.tar.gz |
Merge pull request #139 from adunning/patch-2
Simplify hyperref usage.
Diffstat (limited to 'default.latex')
-rw-r--r-- | default.latex | 36 |
1 files changed, 12 insertions, 24 deletions
diff --git a/default.latex b/default.latex index b2ae26ba9..935c2422d 100644 --- a/default.latex +++ b/default.latex @@ -52,32 +52,20 @@ $endif$ $if(geometry)$ \usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry} $endif$ -\makeatletter -\@ifpackageloaded{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 -} -\@ifpackageloaded{color}{ - \PassOptionsToPackage{usenames,dvipsnames}{color} -}{% - \usepackage[usenames,dvipsnames]{color} -} -\makeatother +\usepackage{hyperref} +\PassOptionsToPackage{usenames,dvipsnames}{color} % color is loaded by hyperref \hypersetup{breaklinks=true, - bookmarks=true, - pdfauthor={$author-meta$}, - pdftitle={$title-meta$}, + unicode=true,$if(title-meta)$ + pdftitle={$title-meta$},$endif$$if(author-meta)$ + pdfauthor={$author-meta$},$endif$$if(subtitle)$ + pdfsubject={$subtitle$},$endif$$if(keywords)$ + pdfkeywords={$keywords$},$endif$ colorlinks=true, - citecolor=$if(citecolor)$$citecolor$$else$blue$endif$, - urlcolor=$if(urlcolor)$$urlcolor$$else$blue$endif$, - linkcolor=$if(linkcolor)$$linkcolor$$else$magenta$endif$, - pdfborder={0 0 0} - $if(hidelinks)$,hidelinks,$endif$} + citecolor=$if(citecolor)$$citecolor$$else$black$endif$, + urlcolor=$if(urlcolor)$$urlcolor$$else$black$endif$, + linkcolor=$if(linkcolor)$$linkcolor$$else$black$endif$, + pdfborder={0 0 0}$if(hidelinks)$, + hidelinks$endif$} \urlstyle{same} % don't use monospace font for urls $if(lang)$ \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex |