@@ -4,7 +4,13 @@ $if(colorlinks)$
4\PassOptionsToPackage{usenames,dvipsnames}{color}
4\PassOptionsToPackage{usenames,dvipsnames}{color}
7−\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
7+\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$if(beamer)$ignorenonframetext,$if(handout)$handout,$endif$$if(aspectratio)$aspectratio=$aspectratio$,$endif$$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
9+\setbeamertemplate{caption}[numbered]
10+\setbeamertemplate{caption label separator}{: }
11+\setbeamercolor{caption name}{fg=normal text.fg}
12+\beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$
8$if(beamerarticle)$
14$if(beamerarticle)$
9\usepackage{beamerarticle} % needs to be loaded first
15\usepackage{beamerarticle} % needs to be loaded first
@@ -81,6 +87,26 @@ $if(CJKmainfont)$
92+\usetheme[$for(themeoptions)$$themeoptions$$sep$,$endfor$]{$theme$}
95+\usecolortheme{$colortheme$}
98+\usefonttheme{$fonttheme$}
101+\usefonttheme{serif} % use mainfont rather than sansfont for slide text
104+\useinnertheme{$innertheme$}
107+\useoutertheme{$outertheme$}
84% use upquote if available, for straight quotes in verbatim environments
110% use upquote if available, for straight quotes in verbatim environments
85\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
111\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
86% use microtype if available
112% use microtype if available
@@ -127,6 +153,9 @@ $endif$
127$if(geometry)$
153$if(geometry)$
128\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
154\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
157+\newif\ifbibliography
130$if(natbib)$
159$if(natbib)$
131\usepackage[$natbiboptions$]{natbib}
160\usepackage[$natbiboptions$]{natbib}
132\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
161\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
@@ -151,6 +180,13 @@ $if(tables)$
151\usepackage{longtable,booktabs}
180\usepackage{longtable,booktabs}
152% Fix footnotes in tables (requires footnote package)
181% Fix footnotes in tables (requires footnote package)
153\IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{longtable}}{}
182\IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{longtable}}{}
185+% These lines are needed to make table captions work with longtable:
187+\def\fnum@table{\tablename~\thetable}
155$if(graphics)$
191$if(graphics)$
156\usepackage{graphicx,grffile}
192\usepackage{graphicx,grffile}
@@ -163,6 +199,31 @@ $if(graphics)$
163% using explicit options in \includegraphics[width, height, ...]{}
199% using explicit options in \includegraphics[width, height, ...]{}
164\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
200\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
203+% Prevent slide breaks in the middle of a paragraph:
204+\widowpenalties 1 10000
208+ \let\insertpartnumber\relax
215+ \let\insertsectionnumber\relax
216+ \let\sectionname\relax
217+ \frame{\sectionpage}
221+ \let\insertsubsectionnumber\relax
222+ \let\subsectionname\relax
223+ \frame{\subsectionpage}
166$if(links-as-notes)$
227$if(links-as-notes)$
167% Make links footnotes instead of hotlinks:
228% Make links footnotes instead of hotlinks:
168\DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}}
229\DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}}
@@ -180,6 +241,8 @@ $if(numbersections)$
181\setcounter{secnumdepth}{0}
242\setcounter{secnumdepth}{0}
183$if(subparagraph)$
246$if(subparagraph)$
185% Redefines (sub)paragraphs to behave more like sections
248% Redefines (sub)paragraphs to behave more like sections
@@ -192,6 +255,7 @@ $else$
192\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
255\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
195$if(lang)$
259$if(lang)$
196\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
260\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
197 \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
261 \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
@@ -249,9 +313,20 @@ $if(institute)$
249\institute{$for(institute)$$institute$$sep$ \and $endfor$}
313\institute{$for(institute)$$institute$$sep$ \and $endfor$}
251\date{$date$}
315\date{$date$}
318+\titlegraphic{\includegraphics{$titlegraphic$}}
321+\logo{\includegraphics{$logo$}}
253\begin{document}
325\begin{document}
254$if(title)$
326$if(title)$
255\maketitle
330\maketitle
257$if(abstract)$
332$if(abstract)$
@@ -259,12 +334,18 @@ $if(abstract)$
259$abstract$
334$abstract$
260\end{abstract}
335\end{abstract}
263$for(include-before)$
339$for(include-before)$
264$include-before$
340$include-before$
346+\tableofcontents[hideallsubsections]
269$if(colorlinks)$
350$if(colorlinks)$
270\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$black$endif$}
351\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$black$endif$}
@@ -273,6 +354,7 @@ $endif$
273\tableofcontents
354\tableofcontents
277\listoftables
359\listoftables
@@ -290,12 +372,26 @@ $else$
290\renewcommand\refname{$biblio-title$}
372\renewcommand\refname{$biblio-title$}
376+\begin{frame}[allowframebreaks]{$biblio-title$}
293\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
379\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
297$if(biblatex)$
386$if(biblatex)$
388+\begin{frame}[allowframebreaks]{$biblio-title$}
390+\printbibliography[heading=none]
298\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
393\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
301$for(include-after)$
397$for(include-after)$