@@ -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$}
3\usetheme{$theme$}
3\usetheme{$theme$}
5$if(colortheme)$
5$if(colortheme)$
6\usecolortheme{$colortheme$}
6\usecolortheme{$colortheme$}
9+\usefonttheme{$fonttheme$}
11+\setbeamertemplate{caption}[numbered]
12+\setbeamertemplate{caption label separator}{:}
13+\setbeamercolor{caption name}{fg=normal text.fg}
8\usepackage{amssymb,amsmath}
14\usepackage{amssymb,amsmath}
9\usepackage{ifxetex,ifluatex}
15\usepackage{ifxetex,ifluatex}
10\usepackage{fixltx2e} % provides \textsubscript
16\usepackage{fixltx2e} % provides \textsubscript
12 \usepackage{fontspec,xltxtra,xunicode}
19 \usepackage{fontspec,xltxtra,xunicode}
13 \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
20 \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
21+ \newcommand{\euro}{€}
16 \usepackage{fontspec}
24 \usepackage{fontspec}
17 \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
25 \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
26+ \newcommand{\euro}{€}
28+ \usepackage[T1]{fontenc}
19 \usepackage[utf8]{inputenc}
29 \usepackage[utf8]{inputenc}
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}}{}
22$if(natbib)$
39$if(natbib)$
23\usepackage{natbib}
40\usepackage{natbib}
24\bibliographystyle{plainnat}
41\bibliographystyle{plainnat}
@@ -42,7 +59,8 @@ $if(verbatim-in-note)$
42\usepackage{fancyvrb}
59\usepackage{fancyvrb}
44$if(tables)$
61$if(tables)$
45−\usepackage{longtable}
62+\usepackage{longtable,booktabs}
46% These lines are needed to make table captions work with longtable:
64% These lines are needed to make table captions work with longtable:
47\makeatletter
65\makeatletter
48\def\fnum@table{\tablename~\thetable}
66\def\fnum@table{\tablename~\thetable}
@@ -53,21 +71,14 @@ $if(url)$
54$if(graphics)$
72$if(graphics)$
55\usepackage{graphicx}
73\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.
60\makeatletter
74\makeatletter
62− \ifdim\Gin@nat@width>\linewidth
75+\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
63− \linewidth
76+\def\maxheight{\ifdim\Gin@nat@height>\textheight0.8\textheight\else\Gin@nat@height\fi}
68\makeatother
77\makeatother
69−\let\Oldincludegraphics\includegraphics
78+% Scale images if necessary, so that they will not overflow the page
70−\renewcommand{\includegraphics}[2][]{\Oldincludegraphics[width=\ScaleIfNeeded]{#2}}
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}
73% Comment these out if you don't want a slide with just the
84% Comment these out if you don't want a slide with just the
@@ -119,9 +130,7 @@ $endif$
119$if(author)$
130$if(author)$
120\author{$for(author)$$author$$sep$ \and $endfor$}
131\author{$for(author)$$author$$sep$ \and $endfor$}
123\date{$date$}
133\date{$date$}
126\begin{document}
135\begin{document}
127$if(title)$
136$if(title)$
@@ -149,12 +158,16 @@ $else$
149\renewcommand\refname{$biblio-title$}
158\renewcommand\refname{$biblio-title$}
161+\begin{frame}[allowframebreaks]{$biblio-title$}
152\bibliography{$biblio-files$}
162\bibliography{$biblio-files$}
156$if(biblatex)$
167$if(biblatex)$
168+\begin{frame}[allowframebreaks]{$biblio-title$}
157−\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
169+\printbibliography[heading=none]
160$for(include-after)$
173$for(include-after)$