2013-07-17 15:05:45 -07:00
|
|
|
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(handout)$handout,$endif$$if(beamer)$ignorenonframetext,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
|
2012-01-30 11:25:39 -08:00
|
|
|
$if(theme)$
|
|
|
|
\usetheme{$theme$}
|
|
|
|
$endif$
|
|
|
|
$if(colortheme)$
|
|
|
|
\usecolortheme{$colortheme$}
|
|
|
|
$endif$
|
2013-08-05 22:23:49 +02:00
|
|
|
$if(fonttheme)$
|
|
|
|
\usefonttheme{$fonttheme$}
|
|
|
|
$endif$
|
2013-10-23 20:50:33 -04:00
|
|
|
\setbeamertemplate{caption}[numbered]
|
|
|
|
\setbeamertemplate{caption label separator}{:}
|
|
|
|
\setbeamercolor{caption name}{fg=normal text.fg}
|
2012-01-30 11:25:39 -08:00
|
|
|
\usepackage{amssymb,amsmath}
|
|
|
|
\usepackage{ifxetex,ifluatex}
|
2012-04-21 09:57:45 -07:00
|
|
|
\usepackage{fixltx2e} % provides \textsubscript
|
2014-02-26 21:51:29 +01:00
|
|
|
\usepackage{lmodern}
|
2012-01-30 11:25:39 -08:00
|
|
|
\ifxetex
|
|
|
|
\usepackage{fontspec,xltxtra,xunicode}
|
|
|
|
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
2014-02-26 21:51:29 +01:00
|
|
|
\newcommand{\euro}{€}
|
2012-01-30 11:25:39 -08:00
|
|
|
\else
|
|
|
|
\ifluatex
|
|
|
|
\usepackage{fontspec}
|
|
|
|
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
2014-02-26 21:51:29 +01:00
|
|
|
\newcommand{\euro}{€}
|
2012-01-30 11:25:39 -08:00
|
|
|
\else
|
2014-02-26 21:51:29 +01:00
|
|
|
\usepackage[T1]{fontenc}
|
2012-01-30 11:25:39 -08:00
|
|
|
\usepackage[utf8]{inputenc}
|
2014-02-26 21:51:29 +01:00
|
|
|
$if(euro)$
|
|
|
|
\usepackage{eurosym}
|
|
|
|
$endif$
|
2012-01-30 11:25:39 -08:00
|
|
|
\fi
|
|
|
|
\fi
|
2014-05-06 09:05:46 -07:00
|
|
|
% use upquote if available, for straight quotes in verbatim environments
|
2014-05-06 00:21:02 -07:00
|
|
|
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
|
2014-02-26 21:51:29 +01:00
|
|
|
% use microtype if available
|
|
|
|
\IfFileExists{microtype.sty}{\usepackage{microtype}}{}
|
2012-01-30 11:25:39 -08:00
|
|
|
$if(natbib)$
|
|
|
|
\usepackage{natbib}
|
|
|
|
\bibliographystyle{plainnat}
|
|
|
|
$endif$
|
|
|
|
$if(biblatex)$
|
|
|
|
\usepackage{biblatex}
|
2015-05-11 21:13:25 -07:00
|
|
|
$for(bibliography)$
|
|
|
|
\addbibresource{$bibliography$}
|
|
|
|
$endfor$
|
2012-01-30 11:25:39 -08:00
|
|
|
$endif$
|
|
|
|
$if(listings)$
|
|
|
|
\usepackage{listings}
|
|
|
|
$endif$
|
|
|
|
$if(lhs)$
|
|
|
|
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
|
|
|
|
$endif$
|
|
|
|
$if(highlighting-macros)$
|
|
|
|
$highlighting-macros$
|
|
|
|
$endif$
|
|
|
|
$if(verbatim-in-note)$
|
|
|
|
\usepackage{fancyvrb}
|
|
|
|
$endif$
|
|
|
|
$if(tables)$
|
2013-12-09 18:40:44 +00:00
|
|
|
\usepackage{longtable,booktabs}
|
2014-04-04 13:13:09 -07:00
|
|
|
\usepackage{caption}
|
2013-02-03 10:41:02 -08:00
|
|
|
% These lines are needed to make table captions work with longtable:
|
|
|
|
\makeatletter
|
|
|
|
\def\fnum@table{\tablename~\thetable}
|
|
|
|
\makeatother
|
2012-01-30 11:25:39 -08:00
|
|
|
$endif$
|
|
|
|
$if(url)$
|
|
|
|
\usepackage{url}
|
|
|
|
$endif$
|
|
|
|
$if(graphics)$
|
2014-04-11 17:22:45 -05:00
|
|
|
\usepackage{graphicx}
|
2012-05-31 10:09:31 +03:00
|
|
|
\makeatletter
|
2014-04-09 23:59:16 -04:00
|
|
|
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
|
|
|
|
\def\maxheight{\ifdim\Gin@nat@height>\textheight0.8\textheight\else\Gin@nat@height\fi}
|
2012-05-31 10:09:31 +03:00
|
|
|
\makeatother
|
2014-04-11 17:22:45 -05:00
|
|
|
% Scale images if necessary, so that they will not overflow the page
|
|
|
|
% margins by default, and it is still possible to overwrite the defaults
|
|
|
|
% using explicit options in \includegraphics[width, height, ...]{}
|
|
|
|
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
|
2012-01-30 11:25:39 -08:00
|
|
|
$endif$
|
2012-08-25 21:52:34 -07:00
|
|
|
|
2012-01-30 11:25:39 -08:00
|
|
|
% Comment these out if you don't want a slide with just the
|
|
|
|
% part/section/subsection/subsubsection title:
|
2012-08-25 21:52:34 -07:00
|
|
|
\AtBeginPart{
|
|
|
|
\let\insertpartnumber\relax
|
|
|
|
\let\partname\relax
|
|
|
|
\frame{\partpage}
|
|
|
|
}
|
|
|
|
\AtBeginSection{
|
|
|
|
\let\insertsectionnumber\relax
|
|
|
|
\let\sectionname\relax
|
|
|
|
\frame{\sectionpage}
|
|
|
|
}
|
|
|
|
\AtBeginSubsection{
|
|
|
|
\let\insertsubsectionnumber\relax
|
|
|
|
\let\subsectionname\relax
|
|
|
|
\frame{\subsectionpage}
|
|
|
|
}
|
|
|
|
|
2012-01-30 11:25:39 -08:00
|
|
|
$if(strikeout)$
|
|
|
|
\usepackage[normalem]{ulem}
|
|
|
|
% avoid problems with \sout in headers with hyperref:
|
|
|
|
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
|
|
|
|
$endif$
|
|
|
|
\setlength{\parindent}{0pt}
|
|
|
|
\setlength{\parskip}{6pt plus 2pt minus 1pt}
|
|
|
|
\setlength{\emergencystretch}{3em} % prevent overfull lines
|
2015-05-27 10:46:17 +02:00
|
|
|
\providecommand{\tightlist}{%
|
|
|
|
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
|
2012-01-30 11:25:39 -08:00
|
|
|
$if(numbersections)$
|
|
|
|
$else$
|
|
|
|
\setcounter{secnumdepth}{0}
|
|
|
|
$endif$
|
|
|
|
$if(verbatim-in-note)$
|
|
|
|
\VerbatimFootnotes % allows verbatim text in footnotes
|
|
|
|
$endif$
|
|
|
|
$if(lang)$
|
2015-05-27 10:33:02 -07:00
|
|
|
\ifxetex
|
|
|
|
\usepackage{polyglossia}
|
|
|
|
\setmainlanguage{$mainlang$}
|
2015-05-27 12:14:10 -07:00
|
|
|
\setotherlanguages{$for(otherlang)$$otherlang$$sep$,$endfor$}
|
2015-05-27 10:33:02 -07:00
|
|
|
\else
|
|
|
|
\usepackage[shorthands=off,$lang$]{babel}
|
|
|
|
\fi
|
2012-01-30 11:25:39 -08:00
|
|
|
$endif$
|
|
|
|
$for(header-includes)$
|
|
|
|
$header-includes$
|
|
|
|
$endfor$
|
|
|
|
|
|
|
|
$if(title)$
|
|
|
|
\title{$title$}
|
|
|
|
$endif$
|
2013-06-21 22:48:49 -07:00
|
|
|
$if(subtitle)$
|
|
|
|
\subtitle{$subtitle$}
|
|
|
|
$endif$
|
2012-01-30 11:25:39 -08:00
|
|
|
$if(author)$
|
|
|
|
\author{$for(author)$$author$$sep$ \and $endfor$}
|
|
|
|
$endif$
|
|
|
|
\date{$date$}
|
|
|
|
|
|
|
|
\begin{document}
|
|
|
|
$if(title)$
|
|
|
|
\frame{\titlepage}
|
|
|
|
$endif$
|
|
|
|
|
|
|
|
$for(include-before)$
|
|
|
|
$include-before$
|
|
|
|
|
|
|
|
$endfor$
|
|
|
|
$if(toc)$
|
|
|
|
\begin{frame}
|
|
|
|
\tableofcontents[hideallsubsections]
|
|
|
|
\end{frame}
|
|
|
|
|
|
|
|
$endif$
|
|
|
|
$body$
|
|
|
|
|
|
|
|
$if(natbib)$
|
2015-05-11 21:13:25 -07:00
|
|
|
$if(bibliography)$
|
2012-01-30 11:25:39 -08:00
|
|
|
$if(biblio-title)$
|
|
|
|
$if(book-class)$
|
|
|
|
\renewcommand\bibname{$biblio-title$}
|
|
|
|
$else$
|
|
|
|
\renewcommand\refname{$biblio-title$}
|
|
|
|
$endif$
|
|
|
|
$endif$
|
2013-10-21 14:29:08 -07:00
|
|
|
\begin{frame}[allowframebreaks]{$biblio-title$}
|
2015-05-11 21:13:25 -07:00
|
|
|
\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
|
2013-10-21 14:29:08 -07:00
|
|
|
\end{frame}
|
2012-01-30 11:25:39 -08:00
|
|
|
|
|
|
|
$endif$
|
|
|
|
$endif$
|
|
|
|
$if(biblatex)$
|
2013-10-21 14:29:08 -07:00
|
|
|
\begin{frame}[allowframebreaks]{$biblio-title$}
|
|
|
|
\printbibliography[heading=none]
|
|
|
|
\end{frame}
|
2012-01-30 11:25:39 -08:00
|
|
|
|
|
|
|
$endif$
|
|
|
|
$for(include-after)$
|
|
|
|
$include-after$
|
|
|
|
|
|
|
|
$endfor$
|
|
|
|
\end{document}
|