git.iko.soy/typeable/pandoc
on master help sign in
LaTeX template: move hyperref before polyglossia.
92e8476John MacFarlane
default.latex+17−17
@@ -49,6 +49,23 @@ $endif$
49$if(geometry)$
49$if(geometry)$
50\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
50\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
51$endif$
51$endif$
52+\ifxetex
53+ \usepackage[setpagesize=false, % page size defined by xetex
54+ unicode=false, % unicode breaks when used with xetex
55+ xetex]{hyperref}
56+\else
57+ \usepackage[unicode=true]{hyperref}
58+\fi
59+\hypersetup{breaklinks=true,
60+ bookmarks=true,
61+ pdfauthor={$author-meta$},
62+ pdftitle={$title-meta$},
63+ colorlinks=true,
64+ citecolor=$if(citecolor)$$citecolor$$else$blue$endif$,
65+ urlcolor=$if(urlcolor)$$urlcolor$$else$blue$endif$,
66+ linkcolor=$if(linkcolor)$$linkcolor$$else$magenta$endif$,
67+ pdfborder={0 0 0}}
68+\urlstyle{same} % don't use monospace font for urls
52$if(lang)$
69$if(lang)$
53\ifxetex
70\ifxetex
54 \usepackage{polyglossia}
71 \usepackage{polyglossia}
@@ -95,23 +112,6 @@ $if(graphics)$
95% using explicit options in \includegraphics[width, height, ...]{}
112% using explicit options in \includegraphics[width, height, ...]{}
96\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
113\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
97$endif$
114$endif$
98−\ifxetex
99− \usepackage[setpagesize=false, % page size defined by xetex
100− unicode=false, % unicode breaks when used with xetex
101− xetex]{hyperref}
102−\else
103− \usepackage[unicode=true]{hyperref}
104−\fi
105−\hypersetup{breaklinks=true,
106− bookmarks=true,
107− pdfauthor={$author-meta$},
108− pdftitle={$title-meta$},
109− colorlinks=true,
110− citecolor=$if(citecolor)$$citecolor$$else$blue$endif$,
111− urlcolor=$if(urlcolor)$$urlcolor$$else$blue$endif$,
112− linkcolor=$if(linkcolor)$$linkcolor$$else$magenta$endif$,
113− pdfborder={0 0 0}}
114−\urlstyle{same} % don't use monospace font for urls
115$if(links-as-notes)$
115$if(links-as-notes)$
116% Make links footnotes instead of hotlinks:
116% Make links footnotes instead of hotlinks:
117\renewcommand{\href}[2]{#2\footnote{\url{#1}}}
117\renewcommand{\href}[2]{#2\footnote{\url{#1}}}