aboutsummaryrefslogtreecommitdiff
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
parent5ef0be23755990ca45bfe8694f4ff59cb774292a (diff)
downloadpandoc-8c74cebbfc52e0441d2632470e367e3edb99f20b.tar.gz
Added templates/ directory.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1687 788f1e2b-df1e-0410-8736-df70ead52e1b
-rw-r--r--pandoc.cabal7
-rw-r--r--templates/context.template1
-rw-r--r--templates/docbook.template1
-rw-r--r--templates/html.template1
-rw-r--r--templates/latex.template61
-rw-r--r--templates/man.template1
-rw-r--r--templates/markdown.template1
-rw-r--r--templates/mediawiki.template1
-rw-r--r--templates/opendocument.template1
-rw-r--r--templates/rst.template1
-rw-r--r--templates/rtf.template1
-rw-r--r--templates/s5.template1
-rw-r--r--templates/texinfo.template1
13 files changed, 78 insertions, 1 deletions
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