@@ -0,0 +1,141 @@
1+\documentclass[$if(fontsize)$$fontsize$,$endif$$if(handout)$handout,$endif$$if(beamer)$ignorenonframetext,$endif$]{$documentclass$}
2+$if(theme)$
3+\usetheme{$theme$}
4+$endif$
5+$if(colortheme)$
6+\usecolortheme{$colortheme$}
7+$endif$
8+\usepackage{amssymb,amsmath}
9+\usepackage{ifxetex,ifluatex}
10+\ifxetex
11+ \usepackage{fontspec,xltxtra,xunicode}
12+ \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
13+\else
14+ \ifluatex
15+ \usepackage{fontspec}
16+ \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
17+ \else
18+ \usepackage[utf8]{inputenc}
19+ \fi
20+\fi
21+$if(natbib)$
22+\usepackage{natbib}
23+\bibliographystyle{plainnat}
24+$endif$
25+$if(biblatex)$
26+\usepackage{biblatex}
27+$if(biblio-files)$
28+\bibliography{$biblio-files$}
29+$endif$
30+$endif$
31+$if(listings)$
32+\usepackage{listings}
33+$endif$
34+$if(lhs)$
35+\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
36+$endif$
37+$if(highlighting-macros)$
38+$highlighting-macros$
39+$endif$
40+$if(verbatim-in-note)$
41+\usepackage{fancyvrb}
42+$endif$
43+$if(fancy-enums)$
44+% Redefine labelwidth for lists; otherwise, the enumerate package will cause
45+% markers to extend beyond the left margin.
46+\makeatletter\AtBeginDocument{%
47+ \renewcommand{\@listi}
48+ {\setlength{\labelwidth}{4em}}
49+}\makeatother
50+\usepackage{enumerate}
51+$endif$
52+$if(tables)$
53+\usepackage{ctable}
54+\usepackage{float} % provides the H option for float placement
55+$endif$
56+$if(url)$
57+\usepackage{url}
58+$endif$
59+$if(graphics)$
60+\usepackage{graphicx}
61+$endif$
62+% Comment these out if you don't want a slide with just the
63+% part/section/subsection/subsubsection title:
64+\AtBeginPart{\frame{\partpage}}
65+\AtBeginSection{\frame{\sectionpage}}
66+\AtBeginSubsection{\frame{\subsectionpage}}
67+\AtBeginSubsubsection{\frame{\subsubsectionpage}}
68+$if(strikeout)$
69+\usepackage[normalem]{ulem}
70+% avoid problems with \sout in headers with hyperref:
71+\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
72+$endif$
73+$if(subscript)$
74+\newcommand{\textsubscr}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}}
75+$endif$
76+\setlength{\parindent}{0pt}
77+\setlength{\parskip}{6pt plus 2pt minus 1pt}
78+\setlength{\emergencystretch}{3em} % prevent overfull lines
79+$if(numbersections)$
80+$else$
81+\setcounter{secnumdepth}{0}
82+$endif$
83+$if(verbatim-in-note)$
84+\VerbatimFootnotes % allows verbatim text in footnotes
85+$endif$
86+$if(lang)$
87+\usepackage[$lang$]{babel}
88+$endif$
89+$for(header-includes)$
90+$header-includes$
91+$endfor$
92+
93+$if(title)$
94+\title{$title$}
95+$endif$
96+$if(author)$
97+\author{$for(author)$$author$$sep$ \and $endfor$}
98+$endif$
99+$if(date)$
100+\date{$date$}
101+$endif$
102+
103+\begin{document}
104+$if(title)$
105+\frame{\titlepage}
106+$endif$
107+
108+$for(include-before)$
109+$include-before$
110+
111+$endfor$
112+$if(toc)$
113+\begin{frame}
114+\tableofcontents[hideallsubsections]
115+\end{frame}
116+
117+$endif$
118+$body$
119+
120+$if(natbib)$
121+$if(biblio-files)$
122+$if(biblio-title)$
123+$if(book-class)$
124+\renewcommand\bibname{$biblio-title$}
125+$else$
126+\renewcommand\refname{$biblio-title$}
127+$endif$
128+$endif$
129+\bibliography{$biblio-files$}
130+
131+$endif$
132+$endif$
133+$if(biblatex)$
134+\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
135+
136+$endif$
137+$for(include-after)$
138+$include-after$
139+
140+$endfor$
141+\end{document}