haskell.sty
Andrew Rock
A.Rock@cit.gu.edu.au
Wed, 10 Jul 2002 08:50:12 +1000
On Wednesday, July 10, 2002, at 03:01 AM, Fran=E7ois B=E9dard wrote:
> I find it interesting that Haskell should make native provision for a=20=
> basic form of literate programming, and this immediately suggests, of=20=
> course, the possibility of mixing code with LaTeX commands.
>
> I've tried to address the question by redefining an existing =
environment
>
> \usepackage{moreverb}
> \newenvironment{code}{\begin{verbatimtab}[4]}{\end{verbatimtab}}
>
> but moreverb and the like depend on verbatim which is apparently the=20=
> one environment you can't use like this and I'm no such LaTeX guru =
that=20
> I can come up with better alternatives.
>
Use the fancyvrb package.
\usepackage{fancyvrb}
\DefineVerbatimEnvironment{code}{Verbatim}{}
\begin{code}
module Main(main) where
\end{code}
Cheers,
Rock.
--
Andrew Rock -- arock@cit.gu.edu.au -- http://www.cit.gu.edu.au/~arock/
School of Computing and Information Technology
Griffith University -- Nathan, Brisbane, Queensland 4111, Australia