git.iko.soy/typeable/pandoc
on master help sign in
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.

commit60c9c4504119db3b182d78098213bd9ef0d83853 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 24 Jan 2017, 14:47 (10 years ago) parent2fab0b2
2 files changed+13−8
default.beamer+7−4 default.latex+6−4
default.beamer+7−4
@@ -97,6 +97,9 @@ $for(bibliography)$
9797\addbibresource{$bibliography$}
9898$endfor$
9999$endif$
100+$if(verbatim-in-note)$
101+\usepackage{fancyvrb}
102+$endif$
100103\hypersetup{
101104$if(title-meta)$
102105 pdftitle={$title-meta$},
@@ -116,6 +119,10 @@ $else$
116119 pdfborder={0 0 0},
117120$endif$
118121 breaklinks=true}
122+\urlstyle{same} % don't use monospace font for urls
123+$if(verbatim-in-note)$
124+\VerbatimFootnotes % allows verbatim text in footnotes
125+$endif$
119126$if(listings)$
120127\usepackage{listings}
121128$endif$
@@ -125,10 +132,6 @@ $endif$
125132$if(highlighting-macros)$
126133$highlighting-macros$
127134$endif$
128−$if(verbatim-in-note)$
129−\usepackage{fancyvrb}
130−\VerbatimFootnotes % allows verbatim text in footnotes
131−$endif$
132135$if(tables)$
133136\usepackage{longtable,booktabs}
134137\usepackage{caption}
default.latex+6−4
@@ -61,6 +61,9 @@ $if(geometry)$
6161\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
6262$endif$
6363\PassOptionsToPackage{hyphens}{url} % url is loaded by hyperref
64+$if(verbatim-in-note)$
65+\usepackage{fancyvrb}
66+$endif$
6467\usepackage[unicode=true]{hyperref}
6568$if(colorlinks)$
6669\PassOptionsToPackage{usenames,dvipsnames}{color} % color is loaded by hyperref
@@ -85,6 +88,9 @@ $else$
8588$endif$
8689 breaklinks=true}
8790\urlstyle{same} % don't use monospace font for urls
91+$if(verbatim-in-note)$
92+\VerbatimFootnotes % allows verbatim text in footnotes
93+$endif$
8894$if(lang)$
8995\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
9096 \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
@@ -118,10 +124,6 @@ $endif$
118124$if(highlighting-macros)$
119125$highlighting-macros$
120126$endif$
121−$if(verbatim-in-note)$
122−\usepackage{fancyvrb}
123−\VerbatimFootnotes % allows verbatim text in footnotes
124−$endif$
125127$if(tables)$
126128\usepackage{longtable,booktabs}
127129% Fix footnotes in tables (requires footnote package)