summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 01:09:50 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 01:09:50 +0000
commite037d6ace3681b526b9949b367400ba56125e865 (patch)
treef24e6dc583d22a52f538501f0fc5a82e73a53eb3
parent4b0e39fd029b6a110a2828e9dcfdcef51bfe22a8 (diff)
Made writerVariables active in LaTeX writer.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1681 788f1e2b-df1e-0410-8736-df70ead52e1b
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs
index d550482fe..78de1b17c 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -56,7 +56,8 @@ pandocToLaTeX options (Pandoc (Meta title authors date) blocks) = do
titletext <- if null title
then return ""
else liftM render $ inlineListToLaTeX title
- let context = [ ("before", writerIncludeBefore options)
+ let context = writerVariables options ++
+ [ ("before", writerIncludeBefore options)
, ("after", writerIncludeAfter options)
, ("toc", if writerTableOfContents options then "yes" else "")
, ("body", main)