pandoc/templates/latex.template
fiddlosopher fbef848a3a Use $for$ for header-includes.
Put variables in right order.  We've specified that if they
use -A, -B, -H multiple times, the text appears in the same
order as on the command line.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1722 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-31 01:15:50 +00:00

56 lines
1.2 KiB
Text

$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$
$for(header-includes)$
$header-includes$
$endfor$
$if(title)$
\title{$title$}
$endif$
$if(authors)$
\author{$authors$}
$endif$
$if(date)$
\date{$date$}
$endif$
\begin{document}
\maketitle
$if(toc)$
\tableofcontents
$endif$
$body$
\end{document}