Dear all,

I want to call a function "f :: Scenario -> Doc", using lhs2tex, that returns a Doc of the HughesPJ pretty print library. The returning Doc is embedded with Latex syntax. I mean, calling (show f s) returns some thing like:

"\\subsubsection*{Scenario sc01}\n\\begin{itemize}\n\\item ...."

Printing this representation to a file leads to a valid Latex file. However, compiling a call such as (\perform{show f s}), using lhs2tex, lads to an invalid latex document. Is there any lhs2tex option that could be used in this case?

Thanks for any help.

Rodrigo.