aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 01:17:36 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 01:17:36 +0000
commitcc6294c4f271206609e41559d401288ad46e387e (patch)
tree8d272aad2043dd701e77c7d5e60299e62fa004b0 /templates
parent87537c3ff829d7cbcd56d34d03da7ce559e2898d (diff)
downloadpandoc-cc6294c4f271206609e41559d401288ad46e387e.tar.gz
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
Diffstat (limited to 'templates')
-rw-r--r--templates/rtf.template33
1 files changed, 18 insertions, 15 deletions
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$
}
-