From 8c74cebbfc52e0441d2632470e367e3edb99f20b Mon Sep 17 00:00:00 2001
From: fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>
Date: Thu, 31 Dec 2009 01:10:42 +0000
Subject: [PATCH] Added templates/ directory.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1687 788f1e2b-df1e-0410-8736-df70ead52e1b
---
 pandoc.cabal                    |  7 +++-
 templates/context.template      |  1 +
 templates/docbook.template      |  1 +
 templates/html.template         |  1 +
 templates/latex.template        | 61 +++++++++++++++++++++++++++++++++
 templates/man.template          |  1 +
 templates/markdown.template     |  1 +
 templates/mediawiki.template    |  1 +
 templates/opendocument.template |  1 +
 templates/rst.template          |  1 +
 templates/rtf.template          |  1 +
 templates/s5.template           |  1 +
 templates/texinfo.template      |  1 +
 13 files changed, 78 insertions(+), 1 deletion(-)
 create mode 100644 templates/context.template
 create mode 100644 templates/docbook.template
 create mode 100644 templates/html.template
 create mode 100644 templates/latex.template
 create mode 100644 templates/man.template
 create mode 100644 templates/markdown.template
 create mode 100644 templates/mediawiki.template
 create mode 100644 templates/opendocument.template
 create mode 100644 templates/rst.template
 create mode 100644 templates/rtf.template
 create mode 100644 templates/s5.template
 create mode 100644 templates/texinfo.template

diff --git a/pandoc.cabal b/pandoc.cabal
index 3a1f62c95..4c4d020a0 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -34,7 +34,12 @@ Description:     Pandoc is a Haskell library for converting from one markup
                  which convert this native representation into a target
                  format. Thus, adding an input or output format requires
                  only adding a reader or writer.
-Data-Files:
+Data-Files:      templates/html.template, templates/docbook.template,
+                 templates/opendocument.template, templates/latex.template,
+                 templates/context.template, templates/texinfo.template,
+                 templates/man.template, templates/markdown.template,
+                 templates/rst.template, templates/s5.template,
+                 templates/mediawiki.template, templates/rtf.template
                  -- documentation
                  README, INSTALL, COPYRIGHT, BUGS, changelog,
                  -- wrappers
diff --git a/templates/context.template b/templates/context.template
new file mode 100644
index 000000000..1333ed77b
--- /dev/null
+++ b/templates/context.template
@@ -0,0 +1 @@
+TODO
diff --git a/templates/docbook.template b/templates/docbook.template
new file mode 100644
index 000000000..1333ed77b
--- /dev/null
+++ b/templates/docbook.template
@@ -0,0 +1 @@
+TODO
diff --git a/templates/html.template b/templates/html.template
new file mode 100644
index 000000000..1333ed77b
--- /dev/null
+++ b/templates/html.template
@@ -0,0 +1 @@
+TODO
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}
diff --git a/templates/man.template b/templates/man.template
new file mode 100644
index 000000000..1333ed77b
--- /dev/null
+++ b/templates/man.template
@@ -0,0 +1 @@
+TODO
diff --git a/templates/markdown.template b/templates/markdown.template
new file mode 100644
index 000000000..1333ed77b
--- /dev/null
+++ b/templates/markdown.template
@@ -0,0 +1 @@
+TODO
diff --git a/templates/mediawiki.template b/templates/mediawiki.template
new file mode 100644
index 000000000..1333ed77b
--- /dev/null
+++ b/templates/mediawiki.template
@@ -0,0 +1 @@
+TODO
diff --git a/templates/opendocument.template b/templates/opendocument.template
new file mode 100644
index 000000000..1333ed77b
--- /dev/null
+++ b/templates/opendocument.template
@@ -0,0 +1 @@
+TODO
diff --git a/templates/rst.template b/templates/rst.template
new file mode 100644
index 000000000..1333ed77b
--- /dev/null
+++ b/templates/rst.template
@@ -0,0 +1 @@
+TODO
diff --git a/templates/rtf.template b/templates/rtf.template
new file mode 100644
index 000000000..1333ed77b
--- /dev/null
+++ b/templates/rtf.template
@@ -0,0 +1 @@
+TODO
diff --git a/templates/s5.template b/templates/s5.template
new file mode 100644
index 000000000..1333ed77b
--- /dev/null
+++ b/templates/s5.template
@@ -0,0 +1 @@
+TODO
diff --git a/templates/texinfo.template b/templates/texinfo.template
new file mode 100644
index 000000000..1333ed77b
--- /dev/null
+++ b/templates/texinfo.template
@@ -0,0 +1 @@
+TODO