aboutsummaryrefslogtreecommitdiff
path: root/default.latex
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-01-24 14:47:05 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-01-24 14:47:05 +0100
commit60c9c4504119db3b182d78098213bd9ef0d83853 (patch)
tree09e924f984a761b1b2994a32c53a3d135d3c2a69 /default.latex
parent2fab0b28e191d7250af444a382a4d4b7c218b012 (diff)
downloadpandoc-60c9c4504119db3b182d78098213bd9ef0d83853.tar.gz
Changed position of \VerbatimNotes and fancyvrb in latex, beamer templates.
This fixes hyperlinks on footnotes in documents that contain verbatim in notes. (Note: the beamer template was updated to match the LaTeX template, but at this point verbatim in notes seems not to work in beamer.) Supersedes #238.
Diffstat (limited to 'default.latex')
-rw-r--r--default.latex10
1 files changed, 6 insertions, 4 deletions
diff --git a/default.latex b/default.latex
index ab9c7c547..585979690 100644
--- a/default.latex
+++ b/default.latex
@@ -61,6 +61,9 @@ $if(geometry)$
\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
$endif$
\PassOptionsToPackage{hyphens}{url} % url is loaded by hyperref
+$if(verbatim-in-note)$
+\usepackage{fancyvrb}
+$endif$
\usepackage[unicode=true]{hyperref}
$if(colorlinks)$
\PassOptionsToPackage{usenames,dvipsnames}{color} % color is loaded by hyperref
@@ -85,6 +88,9 @@ $else$
$endif$
breaklinks=true}
\urlstyle{same} % don't use monospace font for urls
+$if(verbatim-in-note)$
+\VerbatimFootnotes % allows verbatim text in footnotes
+$endif$
$if(lang)$
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
@@ -118,10 +124,6 @@ $endif$
$if(highlighting-macros)$
$highlighting-macros$
$endif$
-$if(verbatim-in-note)$
-\usepackage{fancyvrb}
-\VerbatimFootnotes % allows verbatim text in footnotes
-$endif$
$if(tables)$
\usepackage{longtable,booktabs}
% Fix footnotes in tables (requires footnote package)