diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2011-12-23 18:26:03 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2011-12-23 18:26:03 -0800 |
commit | 77815c63db258e6c5362ec29bd3ee42b7f7651ba (patch) | |
tree | 662719122786a8c2b371d2f740d4a9f3345cc9f5 /src/Text/Pandoc/Writers | |
parent | 3fa98607db2387013751184ee21bb7b4197669ee (diff) | |
download | pandoc-77815c63db258e6c5362ec29bd3ee42b7f7651ba.tar.gz |
LaTeX writer: Have LHS files set the "listings" variable.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r-- | src/Text/Pandoc/Writers/LaTeX.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index ce5d06826..28bffef2d 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -130,7 +130,7 @@ pandocToLaTeX options (Pandoc (Meta title authors date) blocks) = do [ ("lhs", "yes") | stLHS st ] ++ [ ("graphics", "yes") | stGraphics st ] ++ [ ("book-class", "yes") | stBook st] ++ - [ ("listings", "yes") | writerListings options ] ++ + [ ("listings", "yes") | writerListings options || stLHS st ] ++ [ ("highlighting-macros", defaultLaTeXMacros) | stHighlighting st ] ++ citecontext return $ if writerStandalone options |