2015-10-11 01:39:56 -04:00
|
|
|
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(handout)$handout,$endif$$if(beamer)$ignorenonframetext,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
|
2013-10-23 20:50:33 -04:00
|
|
|
\setbeamertemplate{caption}[numbered]
|
2015-10-07 09:48:10 -07:00
|
|
|
\setbeamertemplate{caption label separator}{: }
|
2013-10-23 20:50:33 -04:00
|
|
|
\setbeamercolor{caption name}{fg=normal text.fg}
|
2015-11-17 10:48:14 -08:00
|
|
|
\beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$
|
2015-10-11 01:39:56 -04:00
|
|
|
$if(fontfamily)$
|
2015-10-22 13:35:13 -04:00
|
|
|
\usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
|
2015-10-11 01:39:56 -04:00
|
|
|
$else$
|
|
|
|
\usepackage{lmodern}
|
|
|
|
$endif$
|
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
|
2015-10-11 01:39:56 -04:00
|
|
|
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
|
2015-10-11 02:03:42 -04:00
|
|
|
\usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
|
2015-10-11 01:39:56 -04:00
|
|
|
\usepackage[utf8]{inputenc}
|
|
|
|
$if(euro)$
|
|
|
|
\usepackage{eurosym}
|
|
|
|
$endif$
|
|
|
|
\else % if luatex or xelatex
|
|
|
|
\ifxetex
|
|
|
|
\usepackage{mathspec}
|
2012-01-30 11:25:39 -08:00
|
|
|
\else
|
2015-10-11 01:39:56 -04:00
|
|
|
\usepackage{fontspec}
|
2012-01-30 11:25:39 -08:00
|
|
|
\fi
|
2015-10-16 08:41:15 -04:00
|
|
|
\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
|
2016-09-14 16:24:12 +07:00
|
|
|
$for(fontfamilies)$
|
|
|
|
\newfontfamily{$fontfamilies.name$}[$fontfamilies.options$]{$fontfamilies.font$}
|
|
|
|
$endfor$
|
2015-12-03 22:38:55 -05:00
|
|
|
$if(euro)$
|
2015-10-11 01:39:56 -04:00
|
|
|
\newcommand{\euro}{€}
|
2015-12-03 22:38:55 -05:00
|
|
|
$endif$
|
2015-10-11 01:39:56 -04:00
|
|
|
$if(mainfont)$
|
2015-10-22 13:35:13 -04:00
|
|
|
\setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
|
2015-10-11 01:39:56 -04:00
|
|
|
$endif$
|
|
|
|
$if(sansfont)$
|
2015-10-22 13:35:13 -04:00
|
|
|
\setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$]{$sansfont$}
|
2015-10-11 01:39:56 -04:00
|
|
|
$endif$
|
|
|
|
$if(monofont)$
|
2015-10-22 13:35:13 -04:00
|
|
|
\setmonofont[Mapping=tex-ansi$if(monofontoptions)$,$for(monofontoptions)$$monofontoptions$$sep$,$endfor$$endif$]{$monofont$}
|
2015-10-11 01:39:56 -04:00
|
|
|
$endif$
|
|
|
|
$if(mathfont)$
|
2015-10-22 13:35:13 -04:00
|
|
|
\setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
|
2015-10-11 01:39:56 -04:00
|
|
|
$endif$
|
|
|
|
$if(CJKmainfont)$
|
|
|
|
\usepackage{xeCJK}
|
2015-10-22 13:35:13 -04:00
|
|
|
\setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
|
2015-10-11 01:39:56 -04:00
|
|
|
$endif$
|
2012-01-30 11:25:39 -08:00
|
|
|
\fi
|
2015-12-08 18:16:44 +00:00
|
|
|
$if(theme)$
|
2016-08-05 16:32:25 +02:00
|
|
|
\usetheme[$for(themeoptions)$$themeoptions$$sep$,$endfor$]{$theme$}
|
2015-12-08 18:16:44 +00:00
|
|
|
$endif$
|
|
|
|
$if(colortheme)$
|
|
|
|
\usecolortheme{$colortheme$}
|
|
|
|
$endif$
|
|
|
|
$if(fonttheme)$
|
|
|
|
\usefonttheme{$fonttheme$}
|
|
|
|
$endif$
|
|
|
|
$if(mainfont)$
|
|
|
|
\usefonttheme{serif} % use mainfont rather than sansfont for slide text
|
|
|
|
$endif$
|
|
|
|
$if(innertheme)$
|
|
|
|
\useinnertheme{$innertheme$}
|
|
|
|
$endif$
|
|
|
|
$if(outertheme)$
|
|
|
|
\useoutertheme{$outertheme$}
|
|
|
|
$endif$
|
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
|
2015-10-11 01:39:56 -04:00
|
|
|
\IfFileExists{microtype.sty}{%
|
|
|
|
\usepackage{microtype}
|
|
|
|
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
|
|
|
|
}{}
|
|
|
|
$if(lang)$
|
2015-10-17 17:48:06 +02:00
|
|
|
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
|
2015-10-22 13:35:13 -04:00
|
|
|
\usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
|
|
|
|
$if(babel-newcommands)$
|
2015-10-17 17:48:06 +02:00
|
|
|
$babel-newcommands$
|
2015-10-22 13:35:13 -04:00
|
|
|
$endif$
|
2015-10-17 17:48:06 +02:00
|
|
|
\else
|
2015-10-11 01:39:56 -04:00
|
|
|
\usepackage{polyglossia}
|
|
|
|
\setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}
|
|
|
|
$for(polyglossia-otherlangs)$
|
|
|
|
\setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$}
|
|
|
|
$endfor$
|
|
|
|
\fi
|
|
|
|
$endif$
|
2015-10-29 10:10:42 -07:00
|
|
|
\newif\ifbibliography
|
2012-01-30 11:25:39 -08:00
|
|
|
$if(natbib)$
|
|
|
|
\usepackage{natbib}
|
2015-10-11 01:39:56 -04:00
|
|
|
\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
|
2012-01-30 11:25:39 -08:00
|
|
|
$endif$
|
|
|
|
$if(biblatex)$
|
2016-07-01 23:01:09 +01:00
|
|
|
\usepackage[$if(biblio-style)$style=$biblio-style$,$endif$$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{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}
|
2015-10-11 01:39:56 -04:00
|
|
|
\VerbatimFootnotes % allows verbatim text in footnotes
|
2012-01-30 11:25:39 -08:00
|
|
|
$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(graphics)$
|
2015-10-11 01:39:56 -04:00
|
|
|
\usepackage{graphicx,grffile}
|
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
|
|
|
|
2015-10-30 11:04:48 -07:00
|
|
|
% Prevent slide breaks in the middle of a paragraph:
|
|
|
|
\widowpenalties 1 10000
|
|
|
|
\raggedbottom
|
|
|
|
|
2015-12-15 10:30:11 +00:00
|
|
|
$if(section-titles)$
|
2012-08-25 21:52:34 -07:00
|
|
|
\AtBeginPart{
|
|
|
|
\let\insertpartnumber\relax
|
|
|
|
\let\partname\relax
|
|
|
|
\frame{\partpage}
|
|
|
|
}
|
|
|
|
\AtBeginSection{
|
2015-10-29 10:10:42 -07:00
|
|
|
\ifbibliography
|
|
|
|
\else
|
|
|
|
\let\insertsectionnumber\relax
|
|
|
|
\let\sectionname\relax
|
|
|
|
\frame{\sectionpage}
|
|
|
|
\fi
|
2012-08-25 21:52:34 -07:00
|
|
|
}
|
|
|
|
\AtBeginSubsection{
|
|
|
|
\let\insertsubsectionnumber\relax
|
|
|
|
\let\subsectionname\relax
|
|
|
|
\frame{\subsectionpage}
|
|
|
|
}
|
2015-12-15 10:30:11 +00:00
|
|
|
$endif$
|
2012-08-25 21:52:34 -07:00
|
|
|
|
2015-10-11 01:39:56 -04:00
|
|
|
$if(links-as-notes)$
|
|
|
|
% Make links footnotes instead of hotlinks:
|
|
|
|
\renewcommand{\href}[2]{#2\footnote{\url{#1}}}
|
|
|
|
$endif$
|
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$
|
2016-07-20 10:44:30 -07:00
|
|
|
\setlength{\parindent}{0pt}
|
|
|
|
\setlength{\parskip}{6pt plus 2pt minus 1pt}
|
2012-01-30 11:25:39 -08:00
|
|
|
\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)$
|
2015-10-11 01:39:56 -04:00
|
|
|
\setcounter{secnumdepth}{5}
|
2012-01-30 11:25:39 -08:00
|
|
|
$else$
|
|
|
|
\setcounter{secnumdepth}{0}
|
|
|
|
$endif$
|
2015-10-11 01:39:56 -04:00
|
|
|
$if(dir)$
|
2015-05-27 10:33:02 -07:00
|
|
|
\ifxetex
|
2015-10-11 01:39:56 -04:00
|
|
|
% load bidi as late as possible as it modifies e.g. graphicx
|
|
|
|
$if(latex-dir-rtl)$
|
|
|
|
\usepackage[RTLdocument]{bidi}
|
|
|
|
$else$
|
|
|
|
\usepackage{bidi}
|
|
|
|
$endif$
|
|
|
|
\fi
|
|
|
|
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
|
|
|
|
\TeXXeTstate=1
|
|
|
|
\newcommand{\RL}[1]{\beginR #1\endR}
|
|
|
|
\newcommand{\LR}[1]{\beginL #1\endL}
|
|
|
|
\newenvironment{RTL}{\beginR}{\endR}
|
|
|
|
\newenvironment{LTR}{\beginL}{\endL}
|
2015-05-27 10:33:02 -07:00
|
|
|
\fi
|
2012-01-30 11:25:39 -08:00
|
|
|
$endif$
|
2015-12-10 13:38:37 +00:00
|
|
|
$for(header-includes)$
|
|
|
|
$header-includes$
|
|
|
|
$endfor$
|
2012-01-30 11:25:39 -08:00
|
|
|
|
|
|
|
$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$
|
2016-02-18 19:59:53 +10:00
|
|
|
$if(institute)$
|
|
|
|
\institute{$for(institute)$$institute$$sep$ \and $endfor$}
|
|
|
|
$endif$
|
2012-01-30 11:25:39 -08:00
|
|
|
\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-10-29 10:10:42 -07:00
|
|
|
\bibliographytrue
|
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$}
|
2015-10-29 10:10:42 -07:00
|
|
|
\bibliographytrue
|
2013-10-21 14:29:08 -07:00
|
|
|
\printbibliography[heading=none]
|
|
|
|
\end{frame}
|
2012-01-30 11:25:39 -08:00
|
|
|
|
|
|
|
$endif$
|
|
|
|
$for(include-after)$
|
|
|
|
$include-after$
|
|
|
|
|
|
|
|
$endfor$
|
|
|
|
\end{document}
|