diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2009-12-31 01:15:50 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2009-12-31 01:15:50 +0000 |
commit | fbef848a3af236ca3a18e6aad7c459e93b8495fc (patch) | |
tree | 7c0da5f5d01a4457f3efb78c6384ee190ea9ae44 /templates | |
parent | 7baa79597e1306eeed0313ffafd240b4df5080bb (diff) |
Use $for$ for header-includes.
Put variables in right order. We've specified that if they
use -A, -B, -H multiple times, the text appears in the same
order as on the command line.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1722 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'templates')
-rw-r--r-- | templates/context.template | 4 | ||||
-rw-r--r-- | templates/html.template | 4 | ||||
-rw-r--r-- | templates/latex.template | 4 | ||||
-rw-r--r-- | templates/markdown.template | 4 | ||||
-rw-r--r-- | templates/rst.template | 19 |
5 files changed, 24 insertions, 11 deletions
diff --git a/templates/context.template b/templates/context.template index d450634ee..6b9c04a7e 100644 --- a/templates/context.template +++ b/templates/context.template @@ -71,9 +71,9 @@ after={\blank[medium]}, \protect $endif$ -$if(header-includes)$ +$for(header-includes)$ $header-includes$ -$endif$ +$endfor$ $if(title)$ \doctitle{$title$} diff --git a/templates/html.template b/templates/html.template index 68cacd568..7f1bd17db 100644 --- a/templates/html.template +++ b/templates/html.template @@ -33,9 +33,9 @@ $endif$ $for(css)$ <link rel="stylesheet" href="$css$" type="text/css" /> $endfor$ -$if(header-includes)$ +$for(header-includes)$ $header-includes$ -$endif$ +$endfor$ $if(latexmathml-script)$ $latexmathml-script$ $endif$ diff --git a/templates/latex.template b/templates/latex.template index fe4af083d..407348b52 100644 --- a/templates/latex.template +++ b/templates/latex.template @@ -31,9 +31,9 @@ $if(numbersections)$ $else$ \setcounter{secnumdepth}{0} $endif$ -$if(header-includes)$ +$for(header-includes)$ $header-includes$ -$endif$ +$endfor$ $if(title)$ \title{$title$} diff --git a/templates/markdown.template b/templates/markdown.template index 68fe0eb13..70f1b59b0 100644 --- a/templates/markdown.template +++ b/templates/markdown.template @@ -4,10 +4,10 @@ $if(titleblock)$ % $date$ $endif$ -$if(header-includes)$ +$for(header-includes)$ $header-includes$ -$endif$ +$endfor$ $if(toc)$ $toc$ diff --git a/templates/rst.template b/templates/rst.template index 38e9691d3..abca8d81a 100644 --- a/templates/rst.template +++ b/templates/rst.template @@ -1,5 +1,14 @@ $if(titleblock)$ -$titleblock$ +$if(title)$ +$title$ + +$endif$ +$if(authors)$ +$authors$ +$endif$ +$if(date)$ +Date: $date$ +$endif$ $endif$ $if(math)$ @@ -7,8 +16,12 @@ $if(math)$ :format: html latex $endif$ -$if(header-includes)$ -$header-includes$ +$if(toc)$ +.. contents:: $endif$ +$for(header-includes)$ +$header-includes$ + +$endfor$ $body$ |