summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/context.template6
-rw-r--r--templates/docbook.template6
-rw-r--r--templates/html.template6
-rw-r--r--templates/latex.template8
-rw-r--r--templates/man.template6
-rw-r--r--templates/markdown.template8
-rw-r--r--templates/mediawiki.template8
-rw-r--r--templates/opendocument.template6
-rw-r--r--templates/rst.template8
-rw-r--r--templates/rtf.template6
-rw-r--r--templates/texinfo.template8
11 files changed, 76 insertions, 0 deletions
diff --git a/templates/context.template b/templates/context.template
index adfaec494..6d7e842a2 100644
--- a/templates/context.template
+++ b/templates/context.template
@@ -73,10 +73,16 @@ $endif$
\blank[3*medium]
\stopalignment
$endif$
+$for(include-before)$
+$include-before$
+$endfor$
$if(toc)$
\placecontent
$endif$
$body$
+$for(include-after)$
+$include-after$
+$endfor$
\stoptext
diff --git a/templates/docbook.template b/templates/docbook.template
index 2f0de73da..374a8fbf2 100644
--- a/templates/docbook.template
+++ b/templates/docbook.template
@@ -17,6 +17,12 @@ $if(date)$
<date>$date$</date>
$endif$
</articleinfo>
+$for(include-before)$
+$include-before$
+$endfor$
$body$
+$for(include-after)$
+$include-after$
+$endfor$
</article>
diff --git a/templates/html.template b/templates/html.template
index 7f1bd17db..8d1fafd36 100644
--- a/templates/html.template
+++ b/templates/html.template
@@ -44,9 +44,15 @@ $endif$
$if(title)$
<h1 class="title">$title$</h1>
$endif$
+$for(include-before)$
+$include-before$
+$endfor$
$if(toc)$
$toc$
$endif$
$body$
+$for(include-after)$
+$include-after$
+$endfor$
</body>
</html>
diff --git a/templates/latex.template b/templates/latex.template
index bca71f091..02e570a76 100644
--- a/templates/latex.template
+++ b/templates/latex.template
@@ -80,10 +80,18 @@ $if(title)$
\maketitle
$endif$
+$for(include-before)$
+$include-before$
+
+$endfor$
$if(toc)$
\tableofcontents
$endif$
$body$
+$for(include-after)$
+
+$include-after$
+$endfor$
\end{document}
diff --git a/templates/man.template b/templates/man.template
index 586724395..ff86c8ca6 100644
--- a/templates/man.template
+++ b/templates/man.template
@@ -5,7 +5,13 @@ $endif$
$for(header-includes)$
$header-includes$
$endfor$
+$for(include-before)$
+$include-before$
+$endfor$
$body$
+$for(include-after)$
+$include-after$
+$endfor$
$if(author)$
.SH AUTHORS
$for(author)$$author$$sep$; $endfor$.
diff --git a/templates/markdown.template b/templates/markdown.template
index 6124462ba..d500d3384 100644
--- a/templates/markdown.template
+++ b/templates/markdown.template
@@ -8,8 +8,16 @@ $for(header-includes)$
$header-includes$
$endfor$
+$for(include-before)$
+$include-before$
+
+$endfor$
$if(toc)$
$toc$
$endif$
$body$
+$for(include-after)$
+
+$include-after$
+$endfor$
diff --git a/templates/mediawiki.template b/templates/mediawiki.template
index b32808d65..673e2fc8d 100644
--- a/templates/mediawiki.template
+++ b/templates/mediawiki.template
@@ -1,8 +1,16 @@
$if(legacy-header)$
$legacy-header$
$endif$
+$for(include-before)$
+$include-before$
+
+$endfor$
$if(toc)$
__TOC__
$endif$
$body$
+$for(include-after)$
+
+$include-after$
+$endfor$
diff --git a/templates/opendocument.template b/templates/opendocument.template
index 782c2ad53..ca49782f0 100644
--- a/templates/opendocument.template
+++ b/templates/opendocument.template
@@ -15,7 +15,13 @@ $endfor$
$if(date)$
<text:p text:style-name="Date">$date$</text:p>
$endif$
+$for(include-before)$
+$include-before$
+$endfor$
$body$
+$for(include-after)$
+$include-after$
+$endfor$
</office:text>
</office:body>
</office:document-content>
diff --git a/templates/rst.template b/templates/rst.template
index b4c3e2733..f09bdd8b9 100644
--- a/templates/rst.template
+++ b/templates/rst.template
@@ -20,6 +20,10 @@ $if(math)$
:format: html latex
$endif$
+$for(include-before)$
+$include-before$
+
+$endfor$
$if(toc)$
.. contents::
@@ -29,3 +33,7 @@ $header-includes$
$endfor$
$body$
+$for(include-after)$
+
+$include-after$
+$endfor$
diff --git a/templates/rtf.template b/templates/rtf.template
index 40030077b..c5493cd34 100644
--- a/templates/rtf.template
+++ b/templates/rtf.template
@@ -21,5 +21,11 @@ $endif$
$if(spacer)$
{\pard \ql \f0 \sa180 \li0 \fi0 \par}
$endif$
+$for(include-before)$
+$include-before$
+$endfor$
$body$
+$for(include-after)$
+$include-after$
+$endfor$
}
diff --git a/templates/texinfo.template b/templates/texinfo.template
index c910badfb..58948a068 100644
--- a/templates/texinfo.template
+++ b/templates/texinfo.template
@@ -51,10 +51,18 @@ $endif$
@end titlepage
$endif$
+$for(include-before)$
+$include-before$
+
+$endfor$
$if(toc)$
@contents
$endif$
$body$
+$for(include-after)$
+
+$include-after$
+$endfor$
@bye