aboutsummaryrefslogtreecommitdiff
path: root/src/headers/ConTeXtHeader
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-11-03 22:14:03 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-11-03 22:14:03 +0000
commit4a841bfc5464907adea4cdd655485565565b40ae (patch)
tree36c0a21e3639614c8d25b5fb1909c32d0ab11dcd /src/headers/ConTeXtHeader
parent3116d30133196e1bb258f7e74e03d4a85f3b21ae (diff)
downloadpandoc-4a841bfc5464907adea4cdd655485565565b40ae.tar.gz
Use template haskell to avoid the need for templates:
+ Added library Text.Pandoc.Include, with a template haskell function $(includeStrFrom fname) to include a file as a string constant at compile time. + This removes the need for the 'templates' directory or Makefile target. These have been removed. + The base source directory has been changed from src to . + A new 'data' directory has been added, containing the ASCIIMathML.js script, writer headers, and S5 files. + The src/wrappers directory has been moved to 'wrappers'. + The Text.Pandoc.ASCIIMathML library is no longer needed, since Text.Pandoc.Writers.HTML can use includeStrFrom to include the ASCIIMathML.js code directly. It has been removed. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1063 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'src/headers/ConTeXtHeader')
-rw-r--r--src/headers/ConTeXtHeader61
1 files changed, 0 insertions, 61 deletions
diff --git a/src/headers/ConTeXtHeader b/src/headers/ConTeXtHeader
deleted file mode 100644
index 41648081c..000000000
--- a/src/headers/ConTeXtHeader
+++ /dev/null
@@ -1,61 +0,0 @@
-\enableregime[utf] % use UTF-8
-
-\setupcolors[state=start]
-\setupinteraction[state=start, color=middlered] % 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]
-
-% define ltxitem (for bulleted lists)
-\defineitemgroup[ltxitem][levels=4]
-\setupitemgroup[ltxitem][1][1]
-\setupitemgroup[ltxitem][2][2]
-\setupitemgroup[ltxitem][3][3]
-\setupitemgroup[ltxitem][4][4,packed]
-
-% define ltxenum (for enumerated lists)
-\defineitemgroup[ltxenum][levels=4]
-\setupitemgroup[ltxenum][1][n]
-\setupitemgroup[ltxenum][2][a]
-\setupitemgroup[ltxenum][3][r]
-\setupitemgroup[ltxenum][4][A,packed]
-
-\setupthinrules[width=15em] % width of horizontal rules
-
-% for block quotations
-\definestartstop [blockquote]
- [before={\startnarrower\switchtobodyfont[11pt]
- \whitespace\setupindenting[no]},
- after={\stopnarrower\whitespace}]
-