aboutsummaryrefslogtreecommitdiff
path: root/templates/latex.template
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 01:10:42 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 01:10:42 +0000
commit8c74cebbfc52e0441d2632470e367e3edb99f20b (patch)
tree674c62a0fdcf653250a723e904337a4591a54069 /templates/latex.template
parent5ef0be23755990ca45bfe8694f4ff59cb774292a (diff)
downloadpandoc-8c74cebbfc52e0441d2632470e367e3edb99f20b.tar.gz
Added templates/ directory.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1687 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'templates/latex.template')
-rw-r--r--templates/latex.template61
1 files changed, 61 insertions, 0 deletions
diff --git a/templates/latex.template b/templates/latex.template
new file mode 100644
index 000000000..7c235f8e4
--- /dev/null
+++ b/templates/latex.template
@@ -0,0 +1,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}