diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2009-12-31 01:14:27 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2009-12-31 01:14:27 +0000 |
commit | 22dcf7afdd7ea4508d9b739a3b48138022d361e6 (patch) | |
tree | aab5c84a315c22df1cf91c1143f1469b92a600d0 /templates | |
parent | 275a740624d181630abf120fe39c4f5a8d284a19 (diff) |
Tweaked templates and tests.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1711 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'templates')
-rw-r--r-- | templates/context.template | 3 | ||||
-rw-r--r-- | templates/html.template | 34 | ||||
-rw-r--r-- | templates/latex.template | 1 | ||||
-rw-r--r-- | templates/markdown.template | 2 |
4 files changed, 21 insertions, 19 deletions
diff --git a/templates/context.template b/templates/context.template index 835f7333f..d450634ee 100644 --- a/templates/context.template +++ b/templates/context.template @@ -70,7 +70,7 @@ after={\blank[medium]}, ] \protect -$endif$ +$endif$ $if(header-includes)$ $header-includes$ $endif$ @@ -91,4 +91,5 @@ $if(toc)$ $endif$ $body$ + \stoptext diff --git a/templates/html.template b/templates/html.template index 45eb225ef..129febb03 100644 --- a/templates/html.template +++ b/templates/html.template @@ -1,14 +1,12 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> - <title> - $if(title-prefix)$$title-prefix$ - $endif$$if(pagetitle)$$pagetitle$$endif$ - </title> + <title>$if(title-prefix)$$title-prefix$ - $endif$$if(pagetitle)$$pagetitle$$endif$</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="pandoc" /> <meta name="author" content="$authors$" /> <meta name="date" content="$date$" /> - $if(highlighting)$ +$if(highlighting)$ <style type="text/css"> table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode, table.sourceCode pre { margin: 0; padding: 0; border: 0; vertical-align: baseline; border: none; } td.lineNumbers { border-right: 1px solid #AAAAAA; text-align: right; color: #AAAAAA; padding-right: 5px; padding-left: 5px; } @@ -29,21 +27,21 @@ pre.sourceCode span.RegionMarker { } pre.sourceCode span.Error { color: red; font-weight: bold; } </style> - $endif$ - $if(header-includes)$ - $header-includes$ - $endif$ - $if(latexmathml-script)$ - $latexmathml-script$ - $endif$ +$endif$ +$if(header-includes)$ + $header-includes$ +$endif$ +$if(latexmathml-script)$ + $latexmathml-script$ +$endif$ </head> <body> - $if(title)$ - <h1 class="title">$title$</h1> - $endif$ - $if(toc)$ - $toc$ - $endif$ - $body$ +$if(title)$ +<h1 class="title">$title$</h1> +$endif$ +$if(toc)$ +$toc$ +$endif$ +$body$ </body> </html> diff --git a/templates/latex.template b/templates/latex.template index bd31b5bb6..fe4af083d 100644 --- a/templates/latex.template +++ b/templates/latex.template @@ -52,4 +52,5 @@ $if(toc)$ \tableofcontents $endif$ $body$ + \end{document} diff --git a/templates/markdown.template b/templates/markdown.template index bd373d95f..18e8ff378 100644 --- a/templates/markdown.template +++ b/templates/markdown.template @@ -1,10 +1,12 @@ $if(titleblock)$ $titleblock$ + $endif$ $if(header-includes)$ $header-includes$ $endif$ $if(toc)$ $toc$ + $endif$ $body$ |