From cc6294c4f271206609e41559d401288ad46e387e Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Thu, 31 Dec 2009 01:17:36 +0000 Subject: Modified RTF writer to use new templates. Also changed treatment of multiple authors: they now occupy multiple paragraphs rather than using a line break. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1734 788f1e2b-df1e-0410-8736-df70ead52e1b --- templates/rtf.template | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) (limited to 'templates') diff --git a/templates/rtf.template b/templates/rtf.template index b0d7cb1a6..40030077b 100644 --- a/templates/rtf.template +++ b/templates/rtf.template @@ -1,22 +1,25 @@ +$if(legacy-header)$ +$legacy-header$ +$else$ {\rtf1\ansi\deff0{\fonttbl{\f0 \fswiss Helvetica;}{\f1 Courier;}} {\colortbl;\red255\green0\blue0;\red0\green0\blue255;} \widowctrl\hyphauto - +$endif$ +$for(header-includes)$ $header-includes$ -{\pard \qc \f0 \sa180 \li0 \fi0 \b \fs36 {\i title}\par} -{\pard \qc \f0 \sa180 \li0 \fi0 $authors$\par} +$endfor$ + +$if(title)$ +{\pard \qc \f0 \sa180 \li0 \fi0 \b \fs36 $title$\par} +$endif$ +$for(author)$ +{\pard \qc \f0 \sa180 \li0 \fi0 $author$\par} +$endfor$ +$if(date)$ {\pard \qc \f0 \sa180 \li0 \fi0 $date$\par} +$endif$ +$if(spacer)$ {\pard \ql \f0 \sa180 \li0 \fi0 \par} -{\pard \ql \f0 \sa180 \li0 \fi0 \b \fs36 Contents\par} -{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab section oen\sa180\par} -{\pard \ql \f0 \sa180 \li0 \fi0 \b \fs36 section oen\par} -{\pard \ql \f0 \sa0 \li360 \fi-360 1.\tx360\tab one\par} -{\pard \ql \f0 \sa0 \li720 \fi-360 a.\tx360\tab two\par} -{\pard \ql \f0 \sa0 \li1080 \fi-360 iii.\tx360\tab three\sa180\sa180\sa180\par} -{\pard \ql \f0 \sa180 \li0 \fi0 \f1 hi\par} -{\pard \ql \f0 \sa180 \li0 \fi0 footnote{\super\chftn}{\*\footnote\chftn\~\plain\pard {\pard \ql \f0 \sa180 \li0 \fi0 with code\par} -{\pard \ql \f0 \sa180 \li0 \fi0 \f1 code\par} -}\par} - +$endif$ +$body$ } - -- cgit v1.2.3