aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2011-12-23 18:26:03 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2011-12-23 18:26:03 -0800
commit77815c63db258e6c5362ec29bd3ee42b7f7651ba (patch)
tree662719122786a8c2b371d2f740d4a9f3345cc9f5
parent3fa98607db2387013751184ee21bb7b4197669ee (diff)
downloadpandoc-77815c63db258e6c5362ec29bd3ee42b7f7651ba.tar.gz
LaTeX writer: Have LHS files set the "listings" variable.
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs2
m---------templates10
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