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 | |
parent | 3fa98607db2387013751184ee21bb7b4197669ee (diff) | |
download | pandoc-77815c63db258e6c5362ec29bd3ee42b7f7651ba.tar.gz |
LaTeX writer: Have LHS files set the "listings" variable.
-rw-r--r-- | src/Text/Pandoc/Writers/LaTeX.hs | 2 | ||||
m--------- | templates | 10 |
2 files changed, 6 insertions, 6 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 diff --git a/templates b/templates -Subproject ac3ddfed96bc2ff5b6ff0b7fce49a35a02b227d +Subproject 0d116481c0902181c6b90827a0451570a133de3 |