lhs2TeX-hl Released

| Comments

I’m proud to announce the first release of my lhs2TeX-hl tool. For us who fancy using colours in our presentations or papers this should now go a whole lot easier. Go to the lhs2TeX-hl homepage!

Install it like this:

[bash] > cabal install lhs2TeX-hl [/bash]

lhs2TeX-hl is run before you run lhs2TeX and you supply it with the input file and the output file. A typical execution would look like this:

[bash] > lhs2TeX-hl -o MyPaper.fmt MyPaper.lhs > lhs2TeX -o MyPaper.Tex MyPaper.lhs > pdflatex MyPaper.tex [/bash]

It’s important to note here that you should’ve added the following line to your MyPaper.lhs file:

%include MyPaper.fmt

And that you have the following commands defined in your latex file:

  • \lhsCHkeyword
  • \lhsCHprelude
  • \lhsCHtype
  • \lhsCHlitNumber
  • \lhsCHconstructor
  • \lhsCHfunction
  • \lhsCHinfixoperator

For example, like this:



And then you might end up with something that looks like this:

[caption id=”attachment_306” align=”aligncenter” width=”300” caption=”Literate Highlighter Code v0.1.0.2”]Literate Highlighter Code v0.1.0.2[/caption]