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:
parent
4b0e39fd02
commit
e037d6ace3
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue