aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/LaTeX.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text/Pandoc/Writers/LaTeX.hs')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs
index 78de1b17c..fadde0760 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -57,15 +57,13 @@ pandocToLaTeX options (Pandoc (Meta title authors date) blocks) = do
then return ""
else liftM render $ inlineListToLaTeX title
let context = writerVariables options ++
- [ ("before", writerIncludeBefore options)
- , ("after", writerIncludeAfter options)
- , ("toc", if writerTableOfContents options then "yes" else "")
+ [ ("toc", if writerTableOfContents options then "yes" else "")
, ("body", main)
, ("title", titletext)
, ("authors", intercalate "\\\\" $ map stringToLaTeX authors)
, ("date", stringToLaTeX date) ]
let templ = if writerStandalone options
- then writerHeader options
+ then writerTemplate options
else "$if(toc)$\\tableofcontents\n$endif$" ++
"$if(before)$$before$\n$endif$" ++
"$body$$if(after)$$after$\n$endif$"