aboutsummaryrefslogtreecommitdiff
path: root/data/templates/LaTeX.template
blob: 7c235f8e4ca1687cebf44275fb03764bce7dc5c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
$if(legacy-header)$
$legacy-header$
$else$
\documentclass{article}
\usepackage{ifpdf,ifxetex}
\ifxetex
  \usepackage{fontspec,xltxtra,xunicode}
\else
  \usepackage[utf8x]{inputenc}
  \usepackage[mathletters]{ucs}
\fi
\usepackage{amsmath}
\usepackage{listings}
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
$endif$
\usepackage{fancyvrb}
\usepackage{enumerate}
\usepackage{array}
% This is needed because raggedright in table elements redefines \\:
\newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}
\let\PBS=\PreserveBackslash
\usepackage[normalem]{ulem}
\newcommand{\textsubscr}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}}
\usepackage[breaklinks=true]{hyperref}
\usepackage{url}
\usepackage{graphicx}

\VerbatimFootnotes % allows verbatim text in footnotes

$if(numbersections)$
$else$
\setcounter{secnumdepth}{0}
$endif$
$header-includes$

$if(title)$
\title{$title$}
$endif$
$if(authors)$
\author{$authors$}
$endif$
$if(date)$
\date{$date$}
$endif$

\begin{document}
\maketitle

$if(toc)$
\tableofcontents
$endif$
$if(before)$
$before$
$endif$
$body$
$if(after)$
$after$
$endif$
\end{document}