git.iko.soy/typeable/pandoc
on master help sign in
LaTeX template: Use black for internal links.

This ensures that the table of contents will not be colored. Also added commented-out code to use footnotes for internal links (for print purposes).

commit3bc667281e4d5ceb580d865ef1c9df01bc86e7e4 authorJohn MacFarlane <fiddlosopher@gmail.com> dateSun 3 Jun 2012, 10:57 (14 years ago) parent0fdef55
1 file changed+12−18
default.latex+12−18
default.latex+12−18
@@ -80,9 +80,6 @@ $if(tables)$
8080\usepackage{ctable}
8181\usepackage{float} % provides the H option for float placement
8282$endif$
83−$if(url)$
84−\usepackage{url}
85−$endif$
8683$if(graphics)$
8784\usepackage{graphicx}
8885% We will generate all images so they have a width \maxwidth. This means
@@ -98,23 +95,20 @@ $endif$
9895\ifxetex
9996 \usepackage[setpagesize=false, % page size defined by xetex
10097 unicode=false, % unicode breaks when used with xetex
101− xetex,
102− bookmarks=true,
103− pdfauthor={$author-meta$},
104− pdftitle={$title-meta$},
105− colorlinks=true,
106− urlcolor=blue,
107− linkcolor=blue]{hyperref}
98+ xetex]{hyperref}
10899\else
109− \usepackage[unicode=true,
110− bookmarks=true,
111− pdfauthor={$author-meta$},
112− pdftitle={$title-meta$},
113− colorlinks=true,
114− urlcolor=blue,
115− linkcolor=blue]{hyperref}
100+ \usepackage[unicode=true]{hyperref}
116101\fi
117−\hypersetup{breaklinks=true, pdfborder={0 0 0}}
102+\hypersetup{breaklinks=true,
103+ bookmarks=true,
104+ pdfauthor={$author-meta$},
105+ pdftitle={$title-meta$},
106+ colorlinks=true,
107+ urlcolor=blue,
108+ linkcolor=black,
109+ pdfborder={0 0 0}}
110+% Uncomment next line if you want links as footnotes instead of hotlinks:
111+% \renewcommand{\href}[2]{#2\footnote{\url{#1}}}
118112$if(strikeout)$
119113\usepackage[normalem]{ulem}
120114% avoid problems with \sout in headers with hyperref: