lhs2TeX

lhs2TeX is a preprocessor to generate LaTeX code from literate Haskell sources. It is released under the GPL.

lhs2TeX includes the following features:

Different styles to process your source file: for instance, "tt" style uses a monospaced font for the code while still allowing you to highlight keywords etc, whereas "poly" style uses proportional fonts for identifiers, handles indentation nicely, is able to replace binary operators by mathematical symbols and take care of complex horizontal alignments.
Formatting directives, which let you customize the way certain tokens in the source code should appear in the processed output.
A liberal parser that can handle most of the language extensions; you don't have to restrict yourself to Haskell 98.
Preprocessor-style conditionals that allow you to generate different versions of a document from a single source file (for instance, a paper and a presentation).
Active documents: you can use Haskell to generate parts of the document (useful for papers on Haskell).
A manual explaining all the important aspects of lhs2TeX.
New release: Version 1.15 (December 18, 2009)
This version fixes some small bugs. Most notably, a problem with line endings on Windows should be fixed now, and the version is compatible with version 4 of the base library. If you have a working version of lhs2tex-1.14 and are happy with it, you don't necessarily need to upgrade.
Manual (pdf)
Download: Source distribution (.tar.gz)
Experimental Agda support
Development repository
Currently, lhs2TeX is developed in a svn repository. If you want to checkout the latest version, say
svn checkout https://subversion.cs.uu.nl/repos/staff.andres.lhs2tex/lhs2TeX/trunk lhs2TeX
Old version 1.14 (October 24, 2008)
(There was a buggy prerelease of 1.14 available for a short time. Should you happen to have installed that version, please upgrade to 1.14 final.)
Release announcement
Manual (pdf)
Download: Source distribution (.tar.gz)
Experimental Agda support
Old version 1.13 (February 14, 2008)
Release announcement
Manual (pdf)
Download: Source distribution (.tar.gz)
Old version 1.12 (January 9, 2007)
Release announcement
Manual (pdf)
Download: Source distribution (.tar.bz2)
Old version 1.11 (March 15, 2006)
Release announcement
Manual (pdf)
Download: Source distribution for Unix-like systems (.tar.bz2)
Old version 1.10pre (April 1, 2004)
Manual (pdf)
Download: Source distribution for Unix-like systems (.tar.bz2)
Experimental Windows binary installer (.exe)
This version of lhs2TeX is included in Debian and in Gentoo Linux.
Old version 1.9 (January 23, 2004)
Release announcement
Manual (pdf)
Download: Source distribution for Unix-like systems (.tar.bz2)
This version of lhs2TeX is included in Debian and in Gentoo Linux.

Valid XHTML 1.0! Valid CSS! Get Firefox!

Andres Löh, 2009-12-18