Suppose, there is a large *.tex
document, which has many nested \input
directives with many Haskell listings surrounded by \begin{code} \end{code}
commands.
How can all this code listings be highlighted like all haskell code is highlighted in many haskell papers (functional pearls is a good example)?
I heard, that many haskell papers written in lhs
and then transferred to tex
via lhs2tex
. Yep, this is a nice tool, but it produces whole tex
document and it is hard to be usable for the task like mine.
Btw, I've tried lstlistings
and fancyvrb
– it's far away from ideal.
Best Answer
I was pleased with my
lstlistings
setup which I used in my bachelor thesis:You can find some examples in my thesis: https://www.dropbox.com/sh/zu56xcp1mj57ikq/TtFoHKmOLV/thesis.pdf
I can also provide the whole
.tex
source if needed.