git.iko.soy/typeable/pandoc
on master help sign in
LaTeX writer: Have LHS files set the "listings" variable.
77815c6John MacFarlane
src/Text/Pandoc/Writers/LaTeX.hs+1−1
@@ -130,7 +130,7 @@ pandocToLaTeX options (Pandoc (Meta title authors date) blocks) = do
130 [ ("lhs", "yes") | stLHS st ] ++
130 [ ("lhs", "yes") | stLHS st ] ++
131 [ ("graphics", "yes") | stGraphics st ] ++
131 [ ("graphics", "yes") | stGraphics st ] ++
132 [ ("book-class", "yes") | stBook st] ++
132 [ ("book-class", "yes") | stBook st] ++
133− [ ("listings", "yes") | writerListings options ] ++
133+ [ ("listings", "yes") | writerListings options || stLHS st ] ++
134 [ ("highlighting-macros", defaultLaTeXMacros) | stHighlighting st ] ++
134 [ ("highlighting-macros", defaultLaTeXMacros) | stHighlighting st ] ++
135 citecontext
135 citecontext
136 return $ if writerStandalone options
136 return $ if writerStandalone options
templates+1−1

Submodule changed.