Simplified build process using template haskell.

+ Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
  and Text/Pandoc/Writers/S5.hs are no longer built in Setup.hs
  from templates in the templates/ directory.
+ Instead, they use template haskell to read data at compile
  time from the relevant files in data/.
+ Setup.hs is back to the default simple configuration.
+ Removed old templates and Extra-Tmp-Files field from
  pandoc.cabal.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1357 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
fiddlosopher
2008-08-01 06:35:42 +00:00
parent 04e09cf031
commit ba32c2ec42
29 changed files with 52 additions and 121 deletions
+70
View File
@@ -0,0 +1,70 @@
\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
+3
View File
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
+6
View File
@@ -0,0 +1,6 @@
\documentclass{article}
\usepackage{amsmath}
\usepackage[mathletters]{ucs}
\usepackage[utf8x]{inputenc}
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
+1
View File
@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" ?>
+4
View File
@@ -0,0 +1,4 @@
{\rtf1\ansi\deff0{\fonttbl{\f0 \fswiss Helvetica;}{\f1 Courier;}}
{\colortbl;\red255\green0\blue0;\red0\green0\blue255;}
\widowctrl\hyphauto
+3
View File
@@ -0,0 +1,3 @@
<!-- configuration parameters -->
<meta name="defaultView" content="slideshow" />
<meta name="controlVis" content="hidden" />