git.iko.soy/typeable/pandoc
on master help sign in
Split off default.beamer from default.latex.
commitf26a6351b20dff374b0209a1140faf1f7aeb5f74 authorJohn MacFarlane <fiddlosopher@gmail.com> dateMon 30 Jan 2012, 11:25 (15 years ago) parentb8385d8
2 files changed+142−29
default.beamer+141 default.latex+1−29
default.beamernew file+141
@@ -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}
default.latex+1−29
@@ -1,10 +1,4 @@
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$
1+\documentclass[$if(fontsize)$$fontsize$,$endif$]{$documentclass$}
82\usepackage{amssymb,amsmath}
93\usepackage{ifxetex,ifluatex}
104\ifxetex
@@ -58,8 +52,6 @@ $if(url)$
5852$endif$
5953$if(graphics)$
6054\usepackage{graphicx}
61−$if(beamer)$
62−$else$
6355% We will generate all images so they have a width \maxwidth. This means
6456% that they will get their normal width if they fit onto the page, but
6557% are scaled down if they would overflow the margins.
@@ -70,15 +62,6 @@ $else$
7062\let\Oldincludegraphics\includegraphics
7163\renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
7264$endif$
73−$endif$
74−$if(beamer)$
75−% Comment these out if you don't want a slide with just the
76−% part/section/subsection/subsubsection title:
77−\AtBeginPart{\frame{\partpage}}
78−\AtBeginSection{\frame{\sectionpage}}
79−\AtBeginSubsection{\frame{\subsectionpage}}
80−\AtBeginSubsubsection{\frame{\subsubsectionpage}}
81−$else$
8265\ifxetex
8366 \usepackage[setpagesize=false, % page size defined by xetex
8467 unicode=false, % unicode breaks when used with xetex
@@ -91,7 +74,6 @@ $else$
9174 linkcolor=blue]{hyperref}
9275\fi
9376\hypersetup{breaklinks=true, pdfborder={0 0 0}}
94−$endif$
9577$if(strikeout)$
9678\usepackage[normalem]{ulem}
9779% avoid problems with \sout in headers with hyperref:
@@ -129,25 +111,15 @@ $endif$
129111
130112\begin{document}
131113$if(title)$
132−$if(beamer)$
133−\frame{\titlepage}
134−$else$
135114\maketitle
136115$endif$
137−$endif$
138116
139117$for(include-before)$
140118$include-before$
141119
142120$endfor$
143121$if(toc)$
144−$if(beamer)$
145−\begin{frame}
146−\tableofcontents[hideallsubsections]
147−\end{frame}
148−$else$
149122\tableofcontents
150−$endif$
151123
152124$endif$
153125$body$