summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--default.latex72
-rw-r--r--default.latex.orig421
-rw-r--r--default.latex.rej50
-rw-r--r--default.rst4
4 files changed, 508 insertions, 39 deletions
diff --git a/default.latex b/default.latex
index 3109337..4d1eeb5 100644
--- a/default.latex
+++ b/default.latex
@@ -20,6 +20,41 @@ $endif$
20$for(beameroption)$ 20$for(beameroption)$
21\setbeameroption{$beameroption$} 21\setbeameroption{$beameroption$}
22$endfor$ 22$endfor$
23% Prevent slide breaks in the middle of a paragraph:
24\widowpenalties 1 10000
25\raggedbottom
26$if(section-titles)$
27\setbeamertemplate{part page}{
28\centering
29\begin{beamercolorbox}[sep=16pt,center]{part title}
30 \usebeamerfont{part title}\insertpart\par
31\end{beamercolorbox}
32}
33\setbeamertemplate{section page}{
34\centering
35\begin{beamercolorbox}[sep=12pt,center]{part title}
36 \usebeamerfont{section title}\insertsection\par
37\end{beamercolorbox}
38}
39\setbeamertemplate{subsection page}{
40\centering
41\begin{beamercolorbox}[sep=8pt,center]{part title}
42 \usebeamerfont{subsection title}\insertsubsection\par
43\end{beamercolorbox}
44}
45\AtBeginPart{
46 \frame{\partpage}
47}
48\AtBeginSection{
49 \ifbibliography
50 \else
51 \frame{\sectionpage}
52 \fi
53}
54\AtBeginSubsection{
55 \frame{\subsectionpage}
56}
57$endif$
23$endif$ 58$endif$
24$if(beamerarticle)$ 59$if(beamerarticle)$
25\usepackage{beamerarticle} % needs to be loaded first 60\usepackage{beamerarticle} % needs to be loaded first
@@ -198,43 +233,6 @@ $if(graphics)$
198% using explicit options in \includegraphics[width, height, ...]{} 233% using explicit options in \includegraphics[width, height, ...]{}
199\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} 234\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
200$endif$ 235$endif$
201$if(beamer)$
202% Prevent slide breaks in the middle of a paragraph:
203\widowpenalties 1 10000
204\raggedbottom
205$if(section-titles)$
206\setbeamertemplate{part page}{
207\centering
208\begin{beamercolorbox}[sep=16pt,center]{part title}
209 \usebeamerfont{part title}\insertpart\par
210\end{beamercolorbox}
211}
212\setbeamertemplate{section page}{
213\centering
214\begin{beamercolorbox}[sep=12pt,center]{part title}
215 \usebeamerfont{section title}\insertsection\par
216\end{beamercolorbox}
217}
218\setbeamertemplate{subsection page}{
219\centering
220\begin{beamercolorbox}[sep=8pt,center]{part title}
221 \usebeamerfont{subsection title}\insertsubsection\par
222\end{beamercolorbox}
223}
224\AtBeginPart{
225 \frame{\partpage}
226}
227\AtBeginSection{
228 \ifbibliography
229 \else
230 \frame{\sectionpage}
231 \fi
232}
233\AtBeginSubsection{
234 \frame{\subsectionpage}
235}
236$endif$
237$endif$
238$if(links-as-notes)$ 236$if(links-as-notes)$
239% Make links footnotes instead of hotlinks: 237% Make links footnotes instead of hotlinks:
240\DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}} 238\DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}}
diff --git a/default.latex.orig b/default.latex.orig
new file mode 100644
index 0000000..3109337
--- /dev/null
+++ b/default.latex.orig
@@ -0,0 +1,421 @@
1\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere
2\PassOptionsToPackage{hyphens}{url}
3$if(colorlinks)$
4\PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor}
5$endif$$if(dir)$$if(latex-dir-rtl)$
6\PassOptionsToPackage{RTLdocument}{bidi}
7$endif$$endif$%
8\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$if(beamer)$ignorenonframetext,$if(handout)$handout,$endif$$if(aspectratio)$aspectratio=$aspectratio$,$endif$$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
9$if(beamer)$
10$if(background-image)$
11\usebackgroundtemplate{%
12\includegraphics[width=\paperwidth]{$background-image$}%
13}
14$endif$
15\usepackage{pgfpages}
16\setbeamertemplate{caption}[numbered]
17\setbeamertemplate{caption label separator}{: }
18\setbeamercolor{caption name}{fg=normal text.fg}
19\beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$
20$for(beameroption)$
21\setbeameroption{$beameroption$}
22$endfor$
23$endif$
24$if(beamerarticle)$
25\usepackage{beamerarticle} % needs to be loaded first
26$endif$
27$if(fontfamily)$
28\usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
29$else$
30\usepackage{lmodern}
31$endif$
32$if(linestretch)$
33\usepackage{setspace}
34\setstretch{$linestretch$}
35$endif$
36\usepackage{amssymb,amsmath}
37\usepackage{ifxetex,ifluatex}
38\usepackage{fixltx2e} % provides \textsubscript
39\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
40 \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
41 \usepackage[utf8]{inputenc}
42 \usepackage{textcomp} % provides euro and other symbols
43\else % if luatex or xelatex
44$if(mathspec)$
45 \ifxetex
46 \usepackage{mathspec}
47 \else
48 \usepackage{unicode-math}
49 \fi
50$else$
51 \usepackage{unicode-math}
52$endif$
53 \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
54$for(fontfamilies)$
55 \newfontfamily{$fontfamilies.name$}[$fontfamilies.options$]{$fontfamilies.font$}
56$endfor$
57$if(mainfont)$
58 \setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
59$endif$
60$if(sansfont)$
61 \setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$]{$sansfont$}
62$endif$
63$if(monofont)$
64 \setmonofont[Mapping=tex-ansi$if(monofontoptions)$,$for(monofontoptions)$$monofontoptions$$sep$,$endfor$$endif$]{$monofont$}
65$endif$
66$if(mathfont)$
67$if(mathspec)$
68 \ifxetex
69 \setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
70 \else
71 \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
72 \fi
73$else$
74 \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
75$endif$
76$endif$
77$if(CJKmainfont)$
78 \ifxetex
79 \usepackage{xeCJK}
80 \setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
81 \fi
82$endif$
83$if(luatexjapresetoptions)$
84 \ifluatex
85 \usepackage[$for(luatexjapresetoptions)$$luatexjapresetoptions$$sep$,$endfor$]{luatexja-preset}
86 \fi
87$endif$
88$if(CJKmainfont)$
89 \ifluatex
90 \usepackage[$for(luatexjafontspecoptions)$$luatexjafontspecoptions$$sep$,$endfor$]{luatexja-fontspec}
91 \setmainjfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
92 \fi
93$endif$
94\fi
95$if(beamer)$
96$if(theme)$
97\usetheme[$for(themeoptions)$$themeoptions$$sep$,$endfor$]{$theme$}
98$endif$
99$if(colortheme)$
100\usecolortheme{$colortheme$}
101$endif$
102$if(fonttheme)$
103\usefonttheme{$fonttheme$}
104$endif$
105$if(mainfont)$
106\usefonttheme{serif} % use mainfont rather than sansfont for slide text
107$endif$
108$if(innertheme)$
109\useinnertheme{$innertheme$}
110$endif$
111$if(outertheme)$
112\useoutertheme{$outertheme$}
113$endif$
114$endif$
115% use upquote if available, for straight quotes in verbatim environments
116\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
117% use microtype if available
118\IfFileExists{microtype.sty}{%
119\usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype}
120\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
121}{}
122$if(indent)$
123$else$
124\IfFileExists{parskip.sty}{%
125\usepackage{parskip}
126}{% else
127\setlength{\parindent}{0pt}
128\setlength{\parskip}{6pt plus 2pt minus 1pt}
129}
130$endif$
131$if(verbatim-in-note)$
132\usepackage{fancyvrb}
133$endif$
134$if(colorlinks)$
135\usepackage{xcolor}
136$endif$
137\usepackage{hyperref}
138\hypersetup{
139$if(title-meta)$
140 pdftitle={$title-meta$},
141$endif$
142$if(author-meta)$
143 pdfauthor={$author-meta$},
144$endif$
145$if(keywords)$
146 pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},
147$endif$
148$if(colorlinks)$
149 colorlinks=true,
150 linkcolor=$if(linkcolor)$$linkcolor$$else$Maroon$endif$,
151 citecolor=$if(citecolor)$$citecolor$$else$Blue$endif$,
152 urlcolor=$if(urlcolor)$$urlcolor$$else$Blue$endif$,
153$else$
154 pdfborder={0 0 0},
155$endif$
156 breaklinks=true}
157\urlstyle{same} % don't use monospace font for urls
158$if(verbatim-in-note)$
159\VerbatimFootnotes % allows verbatim text in footnotes
160$endif$
161$if(geometry)$
162\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
163$endif$
164$if(beamer)$
165\newif\ifbibliography
166$endif$
167$if(listings)$
168\usepackage{listings}
169\newcommand{\passthrough}[1]{#1}
170$endif$
171$if(lhs)$
172\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
173$endif$
174$if(highlighting-macros)$
175$highlighting-macros$
176$endif$
177$if(tables)$
178\usepackage{longtable,booktabs}
179$if(beamer)$
180\usepackage{caption}
181% These lines are needed to make table captions work with longtable:
182\makeatletter
183\def\fnum@table{\tablename~\thetable}
184\makeatother
185$else$
186% Fix footnotes in tables (requires footnote package)
187\IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{longtable}}{}
188$endif$
189$endif$
190$if(graphics)$
191\usepackage{graphicx,grffile}
192\makeatletter
193\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
194\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
195\makeatother
196% Scale images if necessary, so that they will not overflow the page
197% margins by default, and it is still possible to overwrite the defaults
198% using explicit options in \includegraphics[width, height, ...]{}
199\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
200$endif$
201$if(beamer)$
202% Prevent slide breaks in the middle of a paragraph:
203\widowpenalties 1 10000
204\raggedbottom
205$if(section-titles)$
206\setbeamertemplate{part page}{
207\centering
208\begin{beamercolorbox}[sep=16pt,center]{part title}
209 \usebeamerfont{part title}\insertpart\par
210\end{beamercolorbox}
211}
212\setbeamertemplate{section page}{
213\centering
214\begin{beamercolorbox}[sep=12pt,center]{part title}
215 \usebeamerfont{section title}\insertsection\par
216\end{beamercolorbox}
217}
218\setbeamertemplate{subsection page}{
219\centering
220\begin{beamercolorbox}[sep=8pt,center]{part title}
221 \usebeamerfont{subsection title}\insertsubsection\par
222\end{beamercolorbox}
223}
224\AtBeginPart{
225 \frame{\partpage}
226}
227\AtBeginSection{
228 \ifbibliography
229 \else
230 \frame{\sectionpage}
231 \fi
232}
233\AtBeginSubsection{
234 \frame{\subsectionpage}
235}
236$endif$
237$endif$
238$if(links-as-notes)$
239% Make links footnotes instead of hotlinks:
240\DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}}
241$endif$
242$if(strikeout)$
243\usepackage[normalem]{ulem}
244% avoid problems with \sout in headers with hyperref:
245\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
246$endif$
247\setlength{\emergencystretch}{3em} % prevent overfull lines
248\providecommand{\tightlist}{%
249 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
250$if(numbersections)$
251\setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$}
252$else$
253\setcounter{secnumdepth}{0}
254$endif$
255$if(beamer)$
256$else$
257$if(subparagraph)$
258$else$
259% Redefines (sub)paragraphs to behave more like sections
260\ifx\paragraph\undefined\else
261\let\oldparagraph\paragraph
262\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
263\fi
264\ifx\subparagraph\undefined\else
265\let\oldsubparagraph\subparagraph
266\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
267\fi
268$endif$
269$endif$
270$if(pagestyle)$
271\pagestyle{$pagestyle$}
272$endif$
273
274% set default figure placement to htbp
275\makeatletter
276\def\fps@figure{htbp}
277\makeatother
278
279$for(header-includes)$
280$header-includes$
281$endfor$
282$if(lang)$
283\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
284 \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
285$if(babel-newcommands)$
286 $babel-newcommands$
287$endif$
288\else
289 % load polyglossia as late as possible as it *could* call bidi if RTL lang (e.g. Hebrew or Arabic)
290 \usepackage{polyglossia}
291 \setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}
292$for(polyglossia-otherlangs)$
293 \setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$}
294$endfor$
295\fi
296$endif$
297$if(dir)$
298\ifxetex
299 % load bidi as late as possible as it modifies e.g. graphicx
300 \usepackage{bidi}
301\fi
302\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
303 \TeXXeTstate=1
304 \newcommand{\RL}[1]{\beginR #1\endR}
305 \newcommand{\LR}[1]{\beginL #1\endL}
306 \newenvironment{RTL}{\beginR}{\endR}
307 \newenvironment{LTR}{\beginL}{\endL}
308\fi
309$endif$
310$if(natbib)$
311\usepackage[$natbiboptions$]{natbib}
312\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
313$endif$
314$if(biblatex)$
315\usepackage[$if(biblio-style)$style=$biblio-style$,$endif$$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex}
316$for(bibliography)$
317\addbibresource{$bibliography$}
318$endfor$
319$endif$
320
321$if(title)$
322\title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
323$endif$
324$if(subtitle)$
325\providecommand{\subtitle}[1]{}
326\subtitle{$subtitle$}
327$endif$
328$if(author)$
329\author{$for(author)$$author$$sep$ \and $endfor$}
330$endif$
331$if(institute)$
332\providecommand{\institute}[1]{}
333\institute{$for(institute)$$institute$$sep$ \and $endfor$}
334$endif$
335\date{$date$}
336$if(beamer)$
337$if(titlegraphic)$
338\titlegraphic{\includegraphics{$titlegraphic$}}
339$endif$
340$if(logo)$
341\logo{\includegraphics{$logo$}}
342$endif$
343$endif$
344
345\begin{document}
346$if(title)$
347$if(beamer)$
348\frame{\titlepage}
349$else$
350\maketitle
351$endif$
352$if(abstract)$
353\begin{abstract}
354$abstract$
355\end{abstract}
356$endif$
357$endif$
358
359$for(include-before)$
360$include-before$
361
362$endfor$
363$if(toc)$
364$if(beamer)$
365\begin{frame}
366\tableofcontents[hideallsubsections]
367\end{frame}
368$else$
369{
370$if(colorlinks)$
371\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$$endif$}
372$endif$
373\setcounter{tocdepth}{$toc-depth$}
374\tableofcontents
375}
376$endif$
377$endif$
378$if(lot)$
379\listoftables
380$endif$
381$if(lof)$
382\listoffigures
383$endif$
384$body$
385
386$if(natbib)$
387$if(bibliography)$
388$if(biblio-title)$
389$if(book-class)$
390\renewcommand\bibname{$biblio-title$}
391$else$
392\renewcommand\refname{$biblio-title$}
393$endif$
394$endif$
395$if(beamer)$
396\begin{frame}[allowframebreaks]{$biblio-title$}
397\bibliographytrue
398$endif$
399\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
400$if(beamer)$
401\end{frame}
402$endif$
403
404$endif$
405$endif$
406$if(biblatex)$
407$if(beamer)$
408\begin{frame}[allowframebreaks]{$biblio-title$}
409\bibliographytrue
410\printbibliography[heading=none]
411\end{frame}
412$else$
413\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
414$endif$
415
416$endif$
417$for(include-after)$
418$include-after$
419
420$endfor$
421\end{document}
diff --git a/default.latex.rej b/default.latex.rej
new file mode 100644
index 0000000..b590012
--- /dev/null
+++ b/default.latex.rej
@@ -0,0 +1,50 @@
1***************
2*** 11,16 ****
3 \setbeamertemplate{caption label separator}{: }
4 \setbeamercolor{caption name}{fg=normal text.fg}
5 \beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$
6 $endif$
7 $if(beamerarticle)$
8 \usepackage{beamerarticle} % needs to be loaded first
9--- 11,51 ----
10 \setbeamertemplate{caption label separator}{: }
11 \setbeamercolor{caption name}{fg=normal text.fg}
12 \beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$
13+ % Prevent slide breaks in the middle of a paragraph:
14+ \widowpenalties 1 10000
15+ \raggedbottom
16+ $if(section-titles)$
17+ \setbeamertemplate{part page}{
18+ \centering
19+ \begin{beamercolorbox}[sep=16pt,center]{part title}
20+ \usebeamerfont{part title}\insertpart\par
21+ \end{beamercolorbox}
22+ }
23+ \setbeamertemplate{section page}{
24+ \centering
25+ \begin{beamercolorbox}[sep=12pt,center]{part title}
26+ \usebeamerfont{section title}\insertsection\par
27+ \end{beamercolorbox}
28+ }
29+ \setbeamertemplate{subsection page}{
30+ \centering
31+ \begin{beamercolorbox}[sep=8pt,center]{part title}
32+ \usebeamerfont{subsection title}\insertsubsection\par
33+ \end{beamercolorbox}
34+ }
35+ \AtBeginPart{
36+ \frame{\partpage}
37+ }
38+ \AtBeginSection{
39+ \ifbibliography
40+ \else
41+ \frame{\sectionpage}
42+ \fi
43+ }
44+ \AtBeginSubsection{
45+ \frame{\subsectionpage}
46+ }
47+ $endif$
48 $endif$
49 $if(beamerarticle)$
50 \usepackage{beamerarticle} % needs to be loaded first
diff --git a/default.rst b/default.rst
index 937eb72..9ba15f5 100644
--- a/default.rst
+++ b/default.rst
@@ -1,5 +1,5 @@
1$if(title)$ 1$if(titleblock)$
2$title$ 2$titleblock$
3 3
4$endif$ 4$endif$
5$for(author)$ 5$for(author)$