Tutorial for literate Haskell
b.i.mills@massey.ac.nz
b.i.mills@massey.ac.nz
Tue, 4 Mar 2003 09:09:08 +1300
Yo,
Steffen Mazanek wrote:
> I do Literate Programming this way:
> At first I define a Latex environment "code" as "verbatim"
> e.g. so: \newenvironment{code}{\footnotesize\verbatim}{\endverbatim\normalsize}
When I ran into the same question some time ago I tried that,
but found that the \verbatim was interpreted to0 literally, so
that the \end{code} does not terminate it. Could you give a
complete short example that works for you?
My own solution was to copy the definition of verbatim from the
base files, and define code the same way in a separate style file.
Regards,
Bruce.