@@ -1,24 +1,41 @@
1−\documentclass[$if(fontsize)$$fontsize$,$endif$$if(handout)$handout,$endif$$if(beamer)$ignorenonframetext,$endif$]{$documentclass$}
1+\documentclass[$if(fontsize)$$fontsize$,$endif$$if(handout)$handout,$endif$$if(beamer)$ignorenonframetext,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
22$if(theme)$
33\usetheme{$theme$}
44$endif$
55$if(colortheme)$
66\usecolortheme{$colortheme$}
77$endif$
8+$if(fonttheme)$
9+\usefonttheme{$fonttheme$}
10+$endif$
11+\setbeamertemplate{caption}[numbered]
12+\setbeamertemplate{caption label separator}{:}
13+\setbeamercolor{caption name}{fg=normal text.fg}
814\usepackage{amssymb,amsmath}
915\usepackage{ifxetex,ifluatex}
1016\usepackage{fixltx2e} % provides \textsubscript
17+\usepackage{lmodern}
1118\ifxetex
1219 \usepackage{fontspec,xltxtra,xunicode}
1320 \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
21+ \newcommand{\euro}{€}
1422\else
1523 \ifluatex
1624 \usepackage{fontspec}
1725 \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
26+ \newcommand{\euro}{€}
1827 \else
28+ \usepackage[T1]{fontenc}
1929 \usepackage[utf8]{inputenc}
30+ $if(euro)$
31+ \usepackage{eurosym}
32+ $endif$
2033 \fi
2134\fi
35+% use upquote if available, for straight quotes in verbatim environments
36+\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
37+% use microtype if available
38+\IfFileExists{microtype.sty}{\usepackage{microtype}}{}
2239$if(natbib)$
2340\usepackage{natbib}
2441\bibliographystyle{plainnat}
@@ -42,7 +59,8 @@ $if(verbatim-in-note)$
4259\usepackage{fancyvrb}
4360$endif$
4461$if(tables)$
45−\usepackage{longtable}
62+\usepackage{longtable,booktabs}
63+\usepackage{caption}
4664% These lines are needed to make table captions work with longtable:
4765\makeatletter
4866\def\fnum@table{\tablename~\thetable}
@@ -53,21 +71,14 @@ $if(url)$
5371$endif$
5472$if(graphics)$
5573\usepackage{graphicx}
56−% Redefine \includegraphics so that, unless explicit options are
57−% given, the image width will not exceed the width of the page.
58−% Images get their normal width if they fit onto the page, but
59−% are scaled down if they would overflow the margins.
6074\makeatletter
61−\def\ScaleIfNeeded{%
62− \ifdim\Gin@nat@width>\linewidth
63− \linewidth
64− \else
65− \Gin@nat@width
66− \fi
67−}
75+\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
76+\def\maxheight{\ifdim\Gin@nat@height>\textheight0.8\textheight\else\Gin@nat@height\fi}
6877\makeatother
69−\let\Oldincludegraphics\includegraphics
70−\renewcommand{\includegraphics}[2][]{\Oldincludegraphics[width=\ScaleIfNeeded]{#2}}
78+% Scale images if necessary, so that they will not overflow the page
79+% margins by default, and it is still possible to overwrite the defaults
80+% using explicit options in \includegraphics[width, height, ...]{}
81+\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
7182$endif$
7283
7384% Comment these out if you don't want a slide with just the
@@ -119,9 +130,7 @@ $endif$
119130$if(author)$
120131\author{$for(author)$$author$$sep$ \and $endfor$}
121132$endif$
122−$if(date)$
123133\date{$date$}
124−$endif$
125134
126135\begin{document}
127136$if(title)$
@@ -149,12 +158,16 @@ $else$
149158\renewcommand\refname{$biblio-title$}
150159$endif$
151160$endif$
161+\begin{frame}[allowframebreaks]{$biblio-title$}
152162\bibliography{$biblio-files$}
163+\end{frame}
153164
154165$endif$
155166$endif$
156167$if(biblatex)$
157−\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
168+\begin{frame}[allowframebreaks]{$biblio-title$}
169+\printbibliography[heading=none]
170+\end{frame}
158171
159172$endif$
160173$for(include-after)$