ade6d8a3fe
Packages will be included only if they are needed, given what is in the document. So if you never use strikeout, you don't need to install the ulem package. Also moved amsmath to the top of the package list, made \maketitle conditional on a title being present, and adjusted spacing. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1738 788f1e2b-df1e-0410-8736-df70ead52e1b
73 lines
1.4 KiB
Text
73 lines
1.4 KiB
Text
$if(legacy-header)$
|
|
$legacy-header$
|
|
$else$
|
|
\documentclass{article}
|
|
\usepackage{amsmath}
|
|
$if(xetex)$
|
|
\usepackage{fontspec,xltxtra,xunicode}
|
|
$else$
|
|
\usepackage[mathletters]{ucs}
|
|
\usepackage[utf8x]{inputenc}
|
|
$endif$
|
|
\usepackage{listings}
|
|
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
|
|
\setlength{\parindent}{0pt}
|
|
\setlength{\parskip}{6pt plus 2pt minus 1pt}
|
|
$endif$
|
|
$if(verbatim-in-note)$
|
|
\usepackage{fancyvrb}
|
|
$endif$
|
|
$if(fancy-enums)$
|
|
\usepackage{enumerate}
|
|
$endif$
|
|
$if(tables)$
|
|
\usepackage{array}
|
|
% This is needed because raggedright in table elements redefines \\:
|
|
\newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}
|
|
\let\PBS=\PreserveBackslash
|
|
$endif$
|
|
$if(strikeout)$
|
|
\usepackage[normalem]{ulem}
|
|
$endif$
|
|
$if(subscript)$
|
|
\newcommand{\textsubscr}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}}
|
|
$endif$
|
|
$if(links)$
|
|
\usepackage[breaklinks=true]{hyperref}
|
|
$endif$
|
|
$if(url)$
|
|
\usepackage{url}
|
|
$endif$
|
|
$if(graphics)$
|
|
\usepackage{graphicx}
|
|
$endif$
|
|
$if(numbersections)$
|
|
$else$
|
|
\setcounter{secnumdepth}{0}
|
|
$endif$
|
|
$if(verbatim-in-note)$
|
|
\VerbatimFootnotes % allows verbatim text in footnotes
|
|
$endif$
|
|
$for(header-includes)$
|
|
$header-includes$
|
|
$endfor$
|
|
|
|
$if(title)$
|
|
\title{$title$}
|
|
$endif$
|
|
\author{$for(author)$$author$$sep$\\$endfor$}
|
|
$if(date)$
|
|
\date{$date$}
|
|
$endif$
|
|
|
|
\begin{document}
|
|
$if(title)$
|
|
\maketitle
|
|
$endif$
|
|
|
|
$if(toc)$
|
|
\tableofcontents
|
|
$endif$
|
|
$body$
|
|
|
|
\end{document}
|