<p>Dear all,</p>
<p>I want to call a function "f :: Scenario -&gt; 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:</p>
<p>"\\subsubsection*{Scenario sc01}\n\\begin{itemize}\n\\item ...."</p>
<p>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?</p>
<p>Thanks for any help.</p>
<p>Rodrigo.</p>
<p> </p>