Dear LaTeX-using Haskellers,

When you include Haskell code in your LaTeX document, you
usually have three choices: 

(1) Use the verbatim environment, which is simple, but
    rarely pleasing from a typesetting perspective (the font 
    is not proportional, you cannot easily use subscripts
    or LaTeX mathematical symbols, and including comments in 
    the standard type face is also difficult).
(2) Use `alltt', which is a bit more flexibel than
    `verbatim', but still not satisfying.
(3) Use math mode, which is a pain, as you have to get the
    kerning right in multi-letter identifiers, indentation
    is difficult to get right etc.

Now there is an alternative: a Haskell style file for
LaTeX2e.  It gives you the nice typesetting of math mode and 
is nearly as painless to use as `verbatim'.  You can get it
from 

  http://www.score.is.tsukuba.ac.jp/~chak/haskell/haskell-style.html

Or as this server recently had some problems, alternatively from

  http://greyarea.is.tsukuba.ac.jp/~chak/haskell/haskell-style.html

I'd appreciate any comments, bug reports, and so on.

Cheers,

Manuel

P.S.: You can also use it to set other functional code.


Reply via email to