Skip to content
Newer
Older
100644 136 lines (126 sloc) 2.75 KB
f26a635 Split off default.beamer from default.latex.
John MacFarlane authored
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 \usepackage{enumerate}
45 $endif$
46 $if(tables)$
47 \usepackage{ctable}
48 \usepackage{float} % provides the H option for float placement
49 $endif$
50 $if(url)$
51 \usepackage{url}
52 $endif$
53 $if(graphics)$
54 \usepackage{graphicx}
55 $endif$
56 % Comment these out if you don't want a slide with just the
57 % part/section/subsection/subsubsection title:
58 \AtBeginPart{\frame{\partpage}}
59 \AtBeginSection{\frame{\sectionpage}}
60 \AtBeginSubsection{\frame{\subsectionpage}}
61 \AtBeginSubsubsection{\frame{\subsubsectionpage}}
62 $if(strikeout)$
63 \usepackage[normalem]{ulem}
64 % avoid problems with \sout in headers with hyperref:
65 \pdfstringdefDisableCommands{\renewcommand{\sout}{}}
66 $endif$
67 $if(subscript)$
68 \newcommand{\textsubscr}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}}
69 $endif$
70 \setlength{\parindent}{0pt}
71 \setlength{\parskip}{6pt plus 2pt minus 1pt}
72 \setlength{\emergencystretch}{3em} % prevent overfull lines
73 $if(numbersections)$
74 $else$
75 \setcounter{secnumdepth}{0}
76 $endif$
77 $if(verbatim-in-note)$
78 \VerbatimFootnotes % allows verbatim text in footnotes
79 $endif$
80 $if(lang)$
81 \usepackage[$lang$]{babel}
82 $endif$
83 $for(header-includes)$
84 $header-includes$
85 $endfor$
86
87 $if(title)$
88 \title{$title$}
89 $endif$
90 $if(author)$
91 \author{$for(author)$$author$$sep$ \and $endfor$}
92 $endif$
93 $if(date)$
94 \date{$date$}
95 $endif$
96
97 \begin{document}
98 $if(title)$
99 \frame{\titlepage}
100 $endif$
101
102 $for(include-before)$
103 $include-before$
104
105 $endfor$
106 $if(toc)$
107 \begin{frame}
108 \tableofcontents[hideallsubsections]
109 \end{frame}
110
111 $endif$
112 $body$
113
114 $if(natbib)$
115 $if(biblio-files)$
116 $if(biblio-title)$
117 $if(book-class)$
118 \renewcommand\bibname{$biblio-title$}
119 $else$
120 \renewcommand\refname{$biblio-title$}
121 $endif$
122 $endif$
123 \bibliography{$biblio-files$}
124
125 $endif$
126 $endif$
127 $if(biblatex)$
128 \printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
129
130 $endif$
131 $for(include-after)$
132 $include-after$
133
134 $endfor$
135 \end{document}
Something went wrong with that request. Please try again.