On Wednesday, July 10, 2002, at 03:01  AM, Fran�ois B�dard wrote:

> I find it interesting that Haskell should make native provision for a 
> basic form of literate programming, and this immediately suggests, of 
> 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 
> one environment you can't use like this and I'm no such LaTeX guru that 
> 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 -- [EMAIL PROTECTED] -- http://www.cit.gu.edu.au/~arock/
School of Computing and Information Technology
Griffith University -- Nathan, Brisbane, Queensland 4111, Australia

_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to