From 4806628c8d8ef9e696a981e6f47ede2b3a6f4d48 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Thu, 31 Dec 2009 01:12:14 +0000 Subject: Added 'standalone' variable, use in templates. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1697 788f1e2b-df1e-0410-8736-df70ead52e1b --- templates/latex.template | 4 ++++ templates/markdown.template | 2 ++ 2 files changed, 6 insertions(+) (limited to 'templates') diff --git a/templates/latex.template b/templates/latex.template index 7c235f8e4..6af0a59cc 100644 --- a/templates/latex.template +++ b/templates/latex.template @@ -1,3 +1,4 @@ +$if(standalone)$ $if(legacy-header)$ $legacy-header$ $else$ @@ -48,6 +49,7 @@ $endif$ \begin{document} \maketitle +$endif$ $if(toc)$ \tableofcontents $endif$ @@ -58,4 +60,6 @@ $body$ $if(after)$ $after$ $endif$ +$if(standalone)$ \end{document} +$endif$ diff --git a/templates/markdown.template b/templates/markdown.template index d5df8a606..5c8a27674 100644 --- a/templates/markdown.template +++ b/templates/markdown.template @@ -1,9 +1,11 @@ +$if(standalone)$ $if(titleblock)$ $titleblock$ $endif$ $if(header-includes)$ $header-includes$ $endif$ +$endif$ $if(before)$ $before$ $endif$ -- cgit v1.2.3