diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-01-24 14:47:05 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-01-24 14:47:05 +0100 |
commit | 60c9c4504119db3b182d78098213bd9ef0d83853 (patch) | |
tree | 09e924f984a761b1b2994a32c53a3d135d3c2a69 | |
parent | 2fab0b28e191d7250af444a382a4d4b7c218b012 (diff) | |
download | pandoc-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.
-rw-r--r-- | default.beamer | 11 | ||||
-rw-r--r-- | default.latex | 10 |
2 files changed, 13 insertions, 8 deletions
diff --git a/default.beamer b/default.beamer index 1dcc77e4e..497aa23f9 100644 --- a/default.beamer +++ b/default.beamer @@ -97,6 +97,9 @@ $for(bibliography)$ \addbibresource{$bibliography$} $endfor$ $endif$ +$if(verbatim-in-note)$ +\usepackage{fancyvrb} +$endif$ \hypersetup{ $if(title-meta)$ pdftitle={$title-meta$}, @@ -116,6 +119,10 @@ $else$ pdfborder={0 0 0}, $endif$ breaklinks=true} +\urlstyle{same} % don't use monospace font for urls +$if(verbatim-in-note)$ +\VerbatimFootnotes % allows verbatim text in footnotes +$endif$ $if(listings)$ \usepackage{listings} $endif$ @@ -125,10 +132,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} \usepackage{caption} 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) |