Made writerVariables active in LaTeX writer.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1681 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
fiddlosopher 2009-12-31 01:09:50 +00:00
parent 4b0e39fd02
commit e037d6ace3

View file

@ -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)