diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-01-25 16:22:56 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-01-25 16:22:56 -0800 |
commit | 7ccaa77797cc03c64cee4437f02aef468d9d5678 (patch) | |
tree | 90dfb081aa47023f7a310873967fff816bcd22ef /test/lhs-test.latex+lhs | |
parent | 7012782b790906fcff318a3cb11654fca5c74f6a (diff) | |
download | pandoc-7ccaa77797cc03c64cee4437f02aef468d9d5678.tar.gz |
LaTeX template: Set default listings language for lua, assembler.
Otherwise we get an error when trying to compile code
with lua or assembler code.
To change the default dialect (currenty 5.3 for lua
and x86masm for assembler), you can use `--include-in-header`
to inject something like
\lstset{defaultdialect=[5.2]Lua}
Closes #5227.
Diffstat (limited to 'test/lhs-test.latex+lhs')
-rw-r--r-- | test/lhs-test.latex+lhs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/lhs-test.latex+lhs b/test/lhs-test.latex+lhs index e959a5e7c..51c49229b 100644 --- a/test/lhs-test.latex+lhs +++ b/test/lhs-test.latex+lhs @@ -40,6 +40,8 @@ \urlstyle{same} % don't use monospace font for urls \usepackage{listings} \newcommand{\passthrough}[1]{#1} +\lstset{defaultdialect=[5.3]Lua} +\lstset{defaultdialect=[x86masm]Assembler} \lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{} \setlength{\emergencystretch}{3em} % prevent overfull lines \providecommand{\tightlist}{% |