From 77815c63db258e6c5362ec29bd3ee42b7f7651ba Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 23 Dec 2011 18:26:03 -0800 Subject: LaTeX writer: Have LHS files set the "listings" variable. --- src/Text/Pandoc/Writers/LaTeX.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text') 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 -- cgit v1.2.3