@@ -0,0 +1,130 @@
1+\documentclass$if(fontsize)$[$fontsize$]$endif${article}
2+\usepackage{amssymb,amsmath}
6+ \usepackage{fontspec,xltxtra,xunicode}
7+ \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
9+ \usepackage[mathletters]{ucs}
10+ \usepackage[utf8x]{inputenc}
13+\usepackage[mathletters]{ucs}
14+\usepackage[utf8x]{inputenc}
18+\bibliographystyle{plainnat}
23+\bibliography{$biblio-files$}
28+\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
30+$if(verbatim-in-note)$
34+% Redefine labelwidth for lists; otherwise, the enumerate package will cause
35+% markers to extend beyond the left margin.
36+\makeatletter\AtBeginDocument{%
37+ \renewcommand{\@listi}
38+ {\setlength{\labelwidth}{4em}}
40+\usepackage{enumerate}
44+\usepackage{float} % provides the H option for float placement
47+\usepackage[normalem]{ulem}
48+% avoid problems with \sout in headers with hyperref:
49+\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
52+\newcommand{\textsubscr}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}}
59+% We will generate all images so they have a width \maxwidth. This means
60+% that they will get their normal width if they fit onto the page, but
61+% are scaled down if they would overflow the margins.
63+\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth
64+\else\Gin@nat@width\fi}
66+\let\Oldincludegraphics\includegraphics
67+\renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
69+\usepackage[breaklinks=true,unicode=true,pdfborder={0 0 0}]{hyperref}
70+\setlength{\parindent}{0pt}
71+\setlength{\parskip}{6pt plus 2pt minus 1pt}
77+\setcounter{secnumdepth}{0}
79+$if(verbatim-in-note)$
80+\VerbatimFootnotes % allows verbatim text in footnotes
82+$for(header-includes)$
90+\author{$for(author)$$author$$sep$\\$endfor$}
101+$for(include-before)$
114+\renewcommand\bibname{$biblio-title$}
116+\renewcommand\refname{$biblio-title$}
119+\bibliography{$biblio-files$}
123+\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$