aboutsummaryrefslogtreecommitdiff
path: root/templates/context.template
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 01:12:25 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 01:12:25 +0000
commit1a166987dfc049d03f034b920e4ae679402aa2f5 (patch)
tree285368b5ea9ff29b863b1e2216580fd387fd886e /templates/context.template
parent4806628c8d8ef9e696a981e6f47ede2b3a6f4d48 (diff)
downloadpandoc-1a166987dfc049d03f034b920e4ae679402aa2f5.tar.gz
Added rough templates for all writers. These need much fine tuning.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1698 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'templates/context.template')
-rw-r--r--templates/context.template113
1 files changed, 112 insertions, 1 deletions
diff --git a/templates/context.template b/templates/context.template
index 1333ed77b..abd56a0c7 100644
--- a/templates/context.template
+++ b/templates/context.template
@@ -1 +1,112 @@
-TODO
+\enableregime[utf] % use UTF-8
+
+\setupcolors[state=start]
+\setupinteraction[state=start, color=middleblue] % needed for hyperlinks
+
+\setuppapersize[letter][letter] % use letter paper
+\setuplayout[width=middle, backspace=1.5in, cutspace=1.5in,
+ height=middle, header=0.75in, footer=0.75in] % page layout
+\setuppagenumbering[location={footer,center}] % number pages
+\setupbodyfont[11pt] % 11pt font
+\setupwhitespace[medium] % inter-paragraph spacing
+
+\setuphead[section][style=\tfc]
+\setuphead[subsection][style=\tfb]
+\setuphead[subsubsection][style=\bf]
+
+% define title block commands
+\unprotect
+\def\doctitle#1{\gdef\@title{#1}}
+\def\author#1{\gdef\@author{#1}}
+\def\date#1{\gdef\@date{#1}}
+\date{\currentdate} % Default to today unless specified otherwise.
+\def\maketitle{%
+ \startalignment[center]
+ \blank[2*big]
+ {\tfd \@title}
+ \blank[3*medium]
+ {\tfa \@author}
+ \blank[2*medium]
+ {\tfa \@date}
+ \blank[3*medium]
+ \stopalignment}
+\protect
+
+% define descr (for definition lists)
+\definedescription[descr][
+ headstyle=bold,style=normal,align=left,location=hanging,
+ width=broad,margin=1cm]
+
+% prevent orphaned list intros
+\setupitemize[autointro]
+
+% define defaults for bulleted lists
+\setupitemize[1][symbol=1][indentnext=no]
+\setupitemize[2][symbol=2][indentnext=no]
+\setupitemize[3][symbol=3][indentnext=no]
+\setupitemize[4][symbol=4][indentnext=no]
+
+\setupthinrules[width=15em] % width of horizontal rules
+
+% for block quotations
+\unprotect
+
+\startvariables all
+blockquote: blockquote
+\stopvariables
+
+\definedelimitedtext
+[\v!blockquote][\v!quotation]
+
+\setupdelimitedtext
+[\v!blockquote]
+[\c!left=,
+\c!right=,
+before={\blank[medium]},
+after={\blank[medium]},
+]
+
+\protect
+
+$header-includes$
+
+\doctitle{$title$}
+\author{\$authors\$}
+\date{\$date\$}
+\starttext
+\maketitle
+
+\placecontent
+
+$before$
+
+\subject{section oen}
+
+\startitemize[n][stopper=.]
+\item
+ one
+ \startitemize[a][stopper=.]
+ \item
+ two
+ \startitemize[r][start=3,stopper=.,width=2.5em]
+ \item
+ three
+ \stopitemize
+ \stopitemize
+\stopitemize
+
+\starttyping
+hi
+\stoptyping
+
+footnote
+\footnote{with code
+
+\starttyping
+code
+\stoptyping
+}
+$after$
+
+\stoptext
+