lhs2tex: Preprocessor for typesetting Haskell sources with LaTeX

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.


This tool is primarily intended for people who want to write articles or books using LaTeX that contain some Haskell code. It works on literate Haskell documents where the non-Haskell parts form essentially a valid LaTeX document, then processes the Haskell code in the document and replaces it with formatted LaTeX output. It is not fully automatic in the sense that it will turn an arbitrary literate Haskell document into a LaTeX document without further work.

Nearly all aspects about the output and formatting are configurable. Output of code can be made using proportional fonts in such a way that even complex horizontal alignment is preserved. The preprocessor can also be invoked in another mode to just extract the Haskell code.


Versions1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.18.1, 1.19, 1.20, 1.21, 1.21, 1.22
Change logCHANGELOG.md
Dependenciesbase (>=4.2 && <5), directory, filepath, mtl (>=2.2.1), process, regex-compat [details]
AuthorRalf Hinze <ralf.hinze@comlab.ox.ac.uk>, Andres Loeh <lhs2tex@andres-loeh.de>
MaintainerAndres Loeh <lhs2tex@andres-loeh.de>
CategoryDevelopment, Language
Home pagehttps://github.com/kosmikus/lhs2tex
Bug trackerhttps://github.com/kosmikus/lhs2tex/issues
Source repositoryhead: git clone https://github.com/kosmikus/lhs2tex
UploadedMon Sep 10 11:55:23 UTC 2018 by AndresLoeh


Maintainers' corner

For package maintainers and hackage trustees