@@ -62,12 +62,7 @@ pandocToLaTeX options (Pandoc (Meta title authors date) blocks) = do
6262 , ("title", titletext)
6363 , ("authors", intercalate "\\\\" $ map stringToLaTeX authors)
6464 , ("date", stringToLaTeX date) ]
65− let templ = if writerStandalone options
66− then writerTemplate options
67− else "$if(toc)$\\tableofcontents\n$endif$" ++
68− "$if(before)$$before$\n$endif$" ++
69− "$body$$if(after)$$after$\n$endif$"
70− return $ renderTemplate context templ
65+ return $ renderTemplate context $ writerTemplate options
7166
7267-- escape things as needed for LaTeX
7368