summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--default.latex34
-rw-r--r--default.latex.orig421
-rw-r--r--default.latex.rej50
-rw-r--r--default.xwiki13
4 files changed, 503 insertions, 15 deletions
diff --git a/default.latex b/default.latex
index bb83755..336aeb3 100644
--- a/default.latex
+++ b/default.latex
@@ -1,5 +1,5 @@
1% Options for packages loaded elsewhere 1% Options for packages loaded elsewhere
2\PassOptionsToPackage{unicode=true$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref} 2\PassOptionsToPackage{unicode$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref}
3\PassOptionsToPackage{hyphens}{url} 3\PassOptionsToPackage{hyphens}{url}
4$if(colorlinks)$ 4$if(colorlinks)$
5\PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor} 5\PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor}
@@ -93,15 +93,14 @@ $else$
93$endif$ 93$endif$
94$if(linestretch)$ 94$if(linestretch)$
95\usepackage{setspace} 95\usepackage{setspace}
96\setstretch{$linestretch$}
97$endif$ 96$endif$
98\usepackage{amssymb,amsmath} 97\usepackage{amssymb,amsmath}
99\usepackage{ifxetex,ifluatex} 98\usepackage{ifxetex,ifluatex}
100\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex 99\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
101 \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc} 100 \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
102 \usepackage[utf8]{inputenc} 101 \usepackage[utf8]{inputenc}
103 \usepackage{textcomp} % provides euro and other symbols 102 \usepackage{textcomp} % provide euro and other symbols
104\else % if luatex or xelatex 103\else % if luatex or xetex
105$if(mathspec)$ 104$if(mathspec)$
106 \ifxetex 105 \ifxetex
107 \usepackage{mathspec} 106 \usepackage{mathspec}
@@ -221,10 +220,10 @@ $if(colorlinks)$
221$else$ 220$else$
222 hidelinks, 221 hidelinks,
223$endif$ 222$endif$
224} 223 pdfcreator={LaTeX via pandoc}}
225\urlstyle{same} % disable monospaced font for URLs 224\urlstyle{same} % disable monospaced font for URLs
226$if(verbatim-in-note)$ 225$if(verbatim-in-note)$
227\VerbatimFootnotes % allows verbatim text in footnotes 226\VerbatimFootnotes % allow verbatim text in footnotes
228$endif$ 227$endif$
229$if(geometry)$ 228$if(geometry)$
230\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry} 229\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
@@ -253,6 +252,11 @@ $if(beamer)$
253\def\fnum@table{\tablename~\thetable} 252\def\fnum@table{\tablename~\thetable}
254\makeatother 253\makeatother
255$else$ 254$else$
255% Correct order of tables after \paragraph or \subparagraph
256\usepackage{etoolbox}
257\makeatletter
258\patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{}
259\makeatother
256% Allow footnotes in longtable head/foot 260% Allow footnotes in longtable head/foot
257\IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}} 261\IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}}
258\makesavenoteenv{longtable} 262\makesavenoteenv{longtable}
@@ -268,6 +272,10 @@ $if(graphics)$
268% margins by default, and it is still possible to overwrite the defaults 272% margins by default, and it is still possible to overwrite the defaults
269% using explicit options in \includegraphics[width, height, ...]{} 273% using explicit options in \includegraphics[width, height, ...]{}
270\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} 274\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
275% Set default figure placement to htbp
276\makeatletter
277\def\fps@figure{htbp}
278\makeatother
271$endif$ 279$endif$
272$if(links-as-notes)$ 280$if(links-as-notes)$
273% Make links footnotes instead of hotlinks: 281% Make links footnotes instead of hotlinks:
@@ -288,9 +296,8 @@ $else$
288$endif$ 296$endif$
289$if(beamer)$ 297$if(beamer)$
290$else$ 298$else$
291$if(subparagraph)$ 299$if(block-headings)$
292$else$ 300% Make \paragraph and \subparagraph free-standing
293% Redefines (sub)paragraphs to behave more like sections
294\ifx\paragraph\undefined\else 301\ifx\paragraph\undefined\else
295 \let\oldparagraph\paragraph 302 \let\oldparagraph\paragraph
296 \renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}} 303 \renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
@@ -304,12 +311,6 @@ $endif$
304$if(pagestyle)$ 311$if(pagestyle)$
305\pagestyle{$pagestyle$} 312\pagestyle{$pagestyle$}
306$endif$ 313$endif$
307
308% Set default figure placement to htbp
309\makeatletter
310\def\fps@figure{htbp}
311\makeatother
312
313$for(header-includes)$ 314$for(header-includes)$
314$header-includes$ 315$header-includes$
315$endfor$ 316$endfor$
@@ -431,6 +432,9 @@ $endif$
431$if(lof)$ 432$if(lof)$
432\listoffigures 433\listoffigures
433$endif$ 434$endif$
435$if(linestretch)$
436\setstretch{$linestretch$}
437$endif$
434$if(has-frontmatter)$ 438$if(has-frontmatter)$
435\mainmatter 439\mainmatter
436$endif$ 440$endif$
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.xwiki b/default.xwiki
new file mode 100644
index 0000000..1d15105
--- /dev/null
+++ b/default.xwiki
@@ -0,0 +1,13 @@
1$for(include-before)$
2$include-before$
3
4$endfor$
5$if(toc)$
6{{toc /}}
7
8$endif$
9$body$
10$for(include-after)$
11
12$include-after$
13$endfor$