git.iko.soy/typeable/pandoc
on master help sign in
Added templates as a git submodule.

This should make it easier for people to track updates to their custom templates.

commitb43873a9ea07afc698d15559717550f8b46e365c authorJohn MacFarlane <jgm@berkeley.edu> dateTue 19 Jul 2011, 16:24 (15 years ago) parent1c28c53
18 files changed+4−709
.gitmodules+3 templates+1 templates/context.template−84 templates/docbook.template−23 templates/html.template−66 templates/latex.template−130 templates/man.template−18 templates/markdown.template−23 templates/mediawiki.template−13 templates/opendocument.template−27 templates/org.template−24 templates/plain.template−23 templates/rst.template−39 templates/rtf.template−27 templates/s5.template−69 templates/slidy.template−70 templates/texinfo.template−64 templates/textile.template−9
.gitmodulesnew file+3
@@ -0,0 +1,3 @@
1+[submodule "templates"]
2+ path = templates
3+ url = git@github.com:jgm/pandoc-templates.git
templatesnew file+1

Submodule changed.

templates/context.templatedeleted−84
@@ -1,84 +0,0 @@
1−\enableregime[utf] % use UTF-8
2−
3−\setupcolors[state=start]
4−\setupinteraction[state=start, color=middleblue] % needed for hyperlinks
5−
6−\setuppapersize[letter][letter] % use letter paper
7−\setuplayout[width=middle, backspace=1.5in, cutspace=1.5in,
8− height=middle, header=0.75in, footer=0.75in] % page layout
9−\setuppagenumbering[location={footer,center}] % number pages
10−\setupbodyfont[11pt] % 11pt font
11−\setupwhitespace[medium] % inter-paragraph spacing
12−
13−\setuphead[section][style=\tfc]
14−\setuphead[subsection][style=\tfb]
15−\setuphead[subsubsection][style=\bf]
16−
17−% define descr (for definition lists)
18−\definedescription[descr][
19− headstyle=bold,style=normal,align=left,location=hanging,
20− width=broad,margin=1cm]
21−
22−% prevent orphaned list intros
23−\setupitemize[autointro]
24−
25−% define defaults for bulleted lists
26−\setupitemize[1][symbol=1][indentnext=no]
27−\setupitemize[2][symbol=2][indentnext=no]
28−\setupitemize[3][symbol=3][indentnext=no]
29−\setupitemize[4][symbol=4][indentnext=no]
30−
31−\setupthinrules[width=15em] % width of horizontal rules
32−
33−% for block quotations
34−\unprotect
35−
36−\startvariables all
37−blockquote: blockquote
38−\stopvariables
39−
40−\definedelimitedtext
41−[\v!blockquote][\v!quotation]
42−
43−\setupdelimitedtext
44−[\v!blockquote]
45−[\c!left=,
46−\c!right=,
47−before={\blank[medium]},
48−after={\blank[medium]},
49−]
50−
51−\protect
52−$for(header-includes)$
53−$header-includes$
54−$endfor$
55−
56−\starttext
57−$if(title)$
58−\startalignment[center]
59− \blank[2*big]
60− {\tfd $title$}
61−$if(author)$
62− \blank[3*medium]
63− {\tfa $for(author)$$author$$sep$\crlf $endfor$}
64−$endif$
65−$if(date)$
66− \blank[2*medium]
67− {\tfa $date$}
68−$endif$
69− \blank[3*medium]
70−\stopalignment
71−$endif$
72−$for(include-before)$
73−$include-before$
74−$endfor$
75−$if(toc)$
76−\placecontent
77−$endif$
78−
79−$body$
80−
81−$for(include-after)$
82−$include-after$
83−$endfor$
84−\stoptext
templates/docbook.templatedeleted−23
@@ -1,23 +0,0 @@
1−<?xml version="1.0" encoding="utf-8" ?>
2−<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3− "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
4−<article>
5− <articleinfo>
6− <title>$title$</title>
7−$for(author)$
8− <author>
9− $author$
10− </author>
11−$endfor$
12−$if(date)$
13− <date>$date$</date>
14−$endif$
15− </articleinfo>
16−$for(include-before)$
17−$include-before$
18−$endfor$
19−$body$
20−$for(include-after)$
21−$include-after$
22−$endfor$
23−</article>
templates/html.templatedeleted−66
@@ -1,66 +0,0 @@
1−$if(html5)$
2−<!DOCTYPE html>
3−<html$if(lang)$ lang="$lang$"$endif$>
4−$else$
5−<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6−<html xmlns="http://www.w3.org/1999/xhtml"$if(lang)$ lang="$lang$" xml:lang="$lang$"$endif$>
7−$endif$
8−<head>
9−$if(html5)$
10− <meta charset="utf-8" />
11−$else$
12− <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
13−$endif$
14− <meta name="generator" content="pandoc" />
15−$for(author)$
16− <meta name="author" content="$author$" />
17−$endfor$
18−$if(date)$
19− <meta name="date" content="$date$" />
20−$endif$
21− <title>$if(title-prefix)$$title-prefix$ - $endif$$if(pagetitle)$$pagetitle$$endif$</title>
22−$if(html5)$
23− <!--[if lt IE 9]>
24− <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
25− <![endif]-->
26−$endif$
27−$if(highlighting-css)$
28− <style type="text/css">
29−$highlighting-css$
30− </style>
31−$endif$
32−$for(css)$
33− <link rel="stylesheet" href="$css$" $if(html5)$$else$type="text/css" $endif$/>
34−$endfor$
35−$if(math)$
36−$if(html5)$
37−$else$
38− $math$
39−$endif$
40−$endif$
41−$for(header-includes)$
42− $header-includes$
43−$endfor$
44−</head>
45−<body>
46−$for(include-before)$
47−$include-before$
48−$endfor$
49−$if(title)$
50−$if(html5)$
51−<header>
52−$endif$
53−<h1 class="title">$title$</h1>
54−$if(html5)$
55−</header>
56−$endif$
57−$endif$
58−$if(toc)$
59−$toc$
60−$endif$
61−$body$
62−$for(include-after)$
63−$include-after$
64−$endfor$
65−</body>
66−</html>
templates/latex.templatedeleted−130
@@ -1,130 +0,0 @@
1−\documentclass$if(fontsize)$[$fontsize$]$endif${article}
2−\usepackage{amssymb,amsmath}
3−$if(xetex)$
4−\usepackage{ifxetex}
5−\ifxetex
6− \usepackage{fontspec,xltxtra,xunicode}
7− \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
8−\else
9− \usepackage[mathletters]{ucs}
10− \usepackage[utf8x]{inputenc}
11−\fi
12−$else$
13−\usepackage[mathletters]{ucs}
14−\usepackage[utf8x]{inputenc}
15−$endif$
16−$if(natbib)$
17−\usepackage{natbib}
18−\bibliographystyle{plainnat}
19−$endif$
20−$if(biblatex)$
21−\usepackage{biblatex}
22−$if(biblio-files)$
23−\bibliography{$biblio-files$}
24−$endif$
25−$endif$
26−$if(lhs)$
27−\usepackage{listings}
28−\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
29−$endif$
30−$if(verbatim-in-note)$
31−\usepackage{fancyvrb}
32−$endif$
33−$if(fancy-enums)$
34−% Redefine labelwidth for lists; otherwise, the enumerate package will cause
35−% markers to extend beyond the left margin.
36−\makeatletter\AtBeginDocument{%
37− \renewcommand{\@listi}
38− {\setlength{\labelwidth}{4em}}
39−}\makeatother
40−\usepackage{enumerate}
41−$endif$
42−$if(tables)$
43−\usepackage{ctable}
44−\usepackage{float} % provides the H option for float placement
45−$endif$
46−$if(strikeout)$
47−\usepackage[normalem]{ulem}
48−% avoid problems with \sout in headers with hyperref:
49−\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
50−$endif$
51−$if(subscript)$
52−\newcommand{\textsubscr}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}}
53−$endif$
54−$if(url)$
55−\usepackage{url}
56−$endif$
57−$if(graphics)$
58−\usepackage{graphicx}
59−% We will generate all images so they have a width \maxwidth. This means
60−% that they will get their normal width if they fit onto the page, but
61−% are scaled down if they would overflow the margins.
62−\makeatletter
63−\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth
64−\else\Gin@nat@width\fi}
65−\makeatother
66−\let\Oldincludegraphics\includegraphics
67−\renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
68−$endif$
69−\usepackage[breaklinks=true,unicode=true,pdfborder={0 0 0}]{hyperref}
70−\setlength{\parindent}{0pt}
71−\setlength{\parskip}{6pt plus 2pt minus 1pt}
72−$if(listings)$
73−\usepackage{listings}
74−$endif$
75−$if(numbersections)$
76−$else$
77−\setcounter{secnumdepth}{0}
78−$endif$
79−$if(verbatim-in-note)$
80−\VerbatimFootnotes % allows verbatim text in footnotes
81−$endif$
82−$for(header-includes)$
83−$header-includes$
84−$endfor$
85−
86−$if(title)$
87−\title{$title$}
88−$endif$
89−$if(author)$
90−\author{$for(author)$$author$$sep$\\$endfor$}
91−$endif$
92−$if(date)$
93−\date{$date$}
94−$endif$
95−
96−\begin{document}
97−$if(title)$
98−\maketitle
99−$endif$
100−
101−$for(include-before)$
102−$include-before$
103−
104−$endfor$
105−$if(toc)$
106−\tableofcontents
107−
108−$endif$
109−$body$
110−$if(biblio-files)$
111−$if(natbib)$
112−$if(biblio-title)$
113−$if(book-class)$
114−\renewcommand\bibname{$biblio-title$}
115−$else$
116−\renewcommand\refname{$biblio-title$}
117−$endif$
118−$endif$
119−\bibliography{$biblio-files$}
120−$endif$
121−$endif$
122−$if(biblatex)$
123−\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
124−$endif$
125−$for(include-after)$
126−
127−$include-after$
128−$endfor$
129−
130−\end{document}
templates/man.templatedeleted−18
@@ -1,18 +0,0 @@
1−$if(has-tables)$
2−.\"t
3−$endif$
4−.TH $title$ $section$ "$date$" $description$
5−$for(header-includes)$
6−$header-includes$
7−$endfor$
8−$for(include-before)$
9−$include-before$
10−$endfor$
11−$body$
12−$for(include-after)$
13−$include-after$
14−$endfor$
15−$if(author)$
16−.SH AUTHORS
17−$for(author)$$author$$sep$; $endfor$.
18−$endif$
templates/markdown.templatedeleted−23
@@ -1,23 +0,0 @@
1−$if(titleblock)$
2−% $title$
3−% $for(author)$$author$$sep$; $endfor$
4−% $date$
5−
6−$endif$
7−$for(header-includes)$
8−$header-includes$
9−
10−$endfor$
11−$for(include-before)$
12−$include-before$
13−
14−$endfor$
15−$if(toc)$
16−$toc$
17−
18−$endif$
19−$body$
20−$for(include-after)$
21−
22−$include-after$
23−$endfor$
templates/mediawiki.templatedeleted−13
@@ -1,13 +0,0 @@
1−$for(include-before)$
2−$include-before$
3−
4−$endfor$
5−$if(toc)$
6−__TOC__
7−
8−$endif$
9−$body$
10−$for(include-after)$
11−
12−$include-after$
13−$endfor$
templates/opendocument.templatedeleted−27
@@ -1,27 +0,0 @@
1−<?xml version="1.0" encoding="utf-8" ?>
2−<office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" office:version="1.0">
3− $automatic-styles$
4−$for(header-includes)$
5− $header-includes$
6−$endfor$
7−<office:body>
8−<office:text>
9−$if(title)$
10−<text:h text:style-name="Heading_20_1" text:outline-level="1">$title$</text:h>
11−$endif$
12−$for(author)$
13−<text:p text:style-name="Author">$author$</text:p>
14−$endfor$
15−$if(date)$
16−<text:p text:style-name="Date">$date$</text:p>
17−$endif$
18−$for(include-before)$
19−$include-before$
20−$endfor$
21−$body$
22−$for(include-after)$
23−$include-after$
24−$endfor$
25−</office:text>
26−</office:body>
27−</office:document-content>
templates/org.templatedeleted−24
@@ -1,24 +0,0 @@
1−$if(title)$
2−$title$
3−
4−$endif$
5−$if(author)$
6−#+AUTHOR: $for(author)$$author$$sep$; $endfor$
7−$endif$
8−$if(date)$
9−#+DATE: $date$
10−
11−$endif$
12−$for(header-includes)$
13−$header-includes$
14−
15−$endfor$
16−$for(include-before)$
17−$include-before$
18−
19−$endfor$
20−$body$
21−$for(include-after)$
22−
23−$include-after$
24−$endfor$
templates/plain.templatedeleted−23
@@ -1,23 +0,0 @@
1−$if(titleblock)$
2−$title$
3−$for(author)$$author$$sep$; $endfor$
4−$date$
5−
6−$endif$
7−$for(header-includes)$
8−$header-includes$
9−
10−$endfor$
11−$for(include-before)$
12−$include-before$
13−
14−$endfor$
15−$if(toc)$
16−$toc$
17−
18−$endif$
19−$body$
20−$for(include-after)$
21−
22−$include-after$
23−$endfor$
templates/rst.templatedeleted−39
@@ -1,39 +0,0 @@
1−$if(title)$
2−$title$
3−
4−$endif$
5−$for(author)$
6−:Author: $author$
7−$endfor$
8−$if(date)$
9−:Date: $date$
10−$endif$
11−$if(author)$
12−
13−$else$
14−$if(date)$
15−
16−$endif$
17−$endif$
18−$if(math)$
19−.. role:: math(raw)
20− :format: html latex
21−
22−$endif$
23−$for(include-before)$
24−$include-before$
25−
26−$endfor$
27−$if(toc)$
28−.. contents::
29−
30−$endif$
31−$for(header-includes)$
32−$header-includes$
33−
34−$endfor$
35−$body$
36−$for(include-after)$
37−
38−$include-after$
39−$endfor$
templates/rtf.templatedeleted−27
@@ -1,27 +0,0 @@
1−{\rtf1\ansi\deff0{\fonttbl{\f0 \fswiss Helvetica;}{\f1 Courier;}}
2−{\colortbl;\red255\green0\blue0;\red0\green0\blue255;}
3−\widowctrl\hyphauto
4−$for(header-includes)$
5−$header-includes$
6−$endfor$
7−
8−$if(title)$
9−{\pard \qc \f0 \sa180 \li0 \fi0 \b \fs36 $title$\par}
10−$endif$
11−$for(author)$
12−{\pard \qc \f0 \sa180 \li0 \fi0 $author$\par}
13−$endfor$
14−$if(date)$
15−{\pard \qc \f0 \sa180 \li0 \fi0 $date$\par}
16−$endif$
17−$if(spacer)$
18−{\pard \ql \f0 \sa180 \li0 \fi0 \par}
19−$endif$
20−$for(include-before)$
21−$include-before$
22−$endfor$
23−$body$
24−$for(include-after)$
25−$include-after$
26−$endfor$
27−}
templates/s5.templatedeleted−69
@@ -1,69 +0,0 @@
1−<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2−<html xmlns="http://www.w3.org/1999/xhtml">
3−<head>
4− <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5− <meta name="generator" content="pandoc" />
6−$for(author)$
7− <meta name="author" content="$author$" />
8−$endfor$
9−$if(date)$
10− <meta name="date" content="$date$" />
11−$endif$
12− <title>$if(title-prefix)$$title-prefix$ - $endif$$if(pagetitle)$$pagetitle$$endif$</title>
13− <!-- configuration parameters -->
14− <meta name="defaultView" content="slideshow" />
15− <meta name="controlVis" content="hidden" />
16−$if(highlighting-css)$
17− <style type="text/css">
18−$highlighting-css$
19− </style>
20−$endif$
21−$for(css)$
22− <link rel="stylesheet" href="$css$" type="text/css" />
23−$endfor$
24−$if(s5includes)$
25−$s5includes$
26−$else$
27− <!-- style sheet links -->
28− <link rel="stylesheet" href="ui/default/slides.css" type="text/css" media="projection" id="slideProj" />
29− <link rel="stylesheet" href="ui/default/outline.css" type="text/css" media="screen" id="outlineStyle" />
30− <link rel="stylesheet" href="ui/default/print.css" type="text/css" media="print" id="slidePrint" />
31− <link rel="stylesheet" href="ui/default/opera.css" type="text/css" media="projection" id="operaFix" />
32− <!-- S5 JS -->
33− <script src="ui/default/slides.js" type="text/javascript"></script>
34−$endif$
35−$if(math)$
36− $math$
37−$endif$
38−$for(header-includes)$
39− $header-includes$
40−$endfor$
41−</head>
42−<body>
43−$for(include-before)$
44−$include-before$
45−$endfor$
46−<div class="layout">
47−<div id="controls"></div>
48−<div id="currentSlide"></div>
49−<div id="header"></div>
50−<div id="footer">
51− <h1>$date$</h1>
52− <h2>$title$</h2>
53−</div>
54−</div>
55−<div class="presentation">
56−$if(title)$
57−<div class="slide">
58− <h1>$title$</h1>
59− <h3>$for(author)$$author$$sep$<br/>$endfor$</h3>
60− <h4>$date$</h4>
61−</div>
62−$endif$
63−$body$
64−$for(include-after)$
65−$include-after$
66−$endfor$
67−</div>
68−</body>
69−</html>
templates/slidy.templatedeleted−70
@@ -1,70 +0,0 @@
1−<?xml version="1.0" encoding="utf-8"?>
2−<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3− "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4−<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5−<head>
6− <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7− <meta name="generator" content="pandoc" />
8−$for(author)$
9− <meta name="author" content="$author$" />
10−$endfor$
11−$if(date)$
12− <meta name="date" content="$date$" />
13−$endif$
14−$if(highlighting-css)$
15− <title>$if(title-prefix)$$title-prefix$ - $endif$$if(pagetitle)$$pagetitle$$endif$</title>
16− <style type="text/css">
17−$highlighting-css$
18− </style>
19−$endif$
20−$if(slidy-css)$
21− <style type="text/css">
22−$slidy-css$
23− </style>
24−$else$
25− <link rel="stylesheet" type="text/css" media="screen, projection, print"
26− href="http://www.w3.org/Talks/Tools/Slidy2/styles/slidy.css" />
27−$endif$
28−$for(css)$
29− <link rel="stylesheet" type="text/css" media="screen, projection, print"
30− href="$css$" />
31−$endfor$
32−$if(math)$
33− $math$
34−$endif$
35−$for(header-includes)$
36− $header-includes$
37−$endfor$
38−$if(slidy-js)$
39− <script type="text/javascript" charset="utf-8">
40−$slidy-js$
41− </script>
42−$else$
43− <script src="http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js.gz"
44− charset="utf-8" type="text/javascript"></script>
45−$endif$
46−$if(duration)$
47− <meta name="duration" content="$duration$" />
48−$endif$
49−</head>
50−<body>
51−$for(include-before)$
52−$include-before$
53−$endfor$
54−$if(title)$
55−<div class="slide titlepage">
56− <h1 class="title">$title$</h1>
57− <p class="author">
58−$for(author)$$author$$sep$<br/>$endfor$
59− </p>
60−$if(date)$
61− <p class="date">$date$</p>
62−$endif$
63−</div>
64−$endif$
65−$body$
66−$for(include-after)$
67−$include-after$
68−$endfor$
69−</body>
70−</html>
templates/texinfo.templatedeleted−64
@@ -1,64 +0,0 @@
1−\input texinfo
2−@documentencoding utf-8
3−$for(header-includes)$
4−$header-includes$
5−$endfor$
6−
7−$if(strikeout)$
8−@macro textstrikeout{text}
9−~~\text\~~
10−@end macro
11−
12−$endif$
13−$if(subscript)$
14−@macro textsubscript{text}
15−@iftex
16−@textsubscript{\text\}
17−@end iftex
18−@ifnottex
19−_@{\text\@}
20−@end ifnottex
21−@end macro
22−
23−$endif$
24−$if(superscript)$
25−@macro textsuperscript{text}
26−@iftex
27−@textsuperscript{\text\}
28−@end iftex
29−@ifnottex
30−^@{\text\@}
31−@end ifnottex
32−@end macro
33−
34−$endif$
35−@ifnottex
36−@paragraphindent 0
37−@end ifnottex
38−$if(titlepage)$
39−@titlepage
40−@title $title$
41−$for(author)$
42−@author $author$
43−$endfor$
44−$if(date)$
45−$date$
46−$endif$
47−@end titlepage
48−
49−$endif$
50−$for(include-before)$
51−$include-before$
52−
53−$endfor$
54−$if(toc)$
55−@contents
56−
57−$endif$
58−$body$
59−$for(include-after)$
60−
61−$include-after$
62−$endfor$
63−
64−@bye
templates/textile.templatedeleted−9
@@ -1,9 +0,0 @@
1−$for(include-before)$
2−$include-before$
3−
4−$endfor$
5−$body$
6−$for(include-after)$
7−
8−$include-after$
9−$endfor$