aboutsummaryrefslogtreecommitdiff
path: root/templates/latex.template
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 21:18:36 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 21:18:36 +0000
commitbdd448ea2cf41324a63bd09771b5ac553e65f540 (patch)
tree694c12cce932a0a9ac04e7c8c6893a8cf667ced9 /templates/latex.template
parent07fe1aedd0d3b393d7cc82c8aa81b309e6eab956 (diff)
downloadpandoc-bdd448ea2cf41324a63bd09771b5ac553e65f540.tar.gz
LaTeX writer: Only require listings package if needed.
That is, if literate Haskell code is used. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1759 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'templates/latex.template')
-rw-r--r--templates/latex.template2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/latex.template b/templates/latex.template
index 5441694cf..8b2dfa8c0 100644
--- a/templates/latex.template
+++ b/templates/latex.template
@@ -9,8 +9,10 @@ $else$
\usepackage[mathletters]{ucs}
\usepackage[utf8x]{inputenc}
$endif$
+$if(lhs)$
\usepackage{listings}
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
+$endif$
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
$endif$