<div dir="ltr"><div>Maybe try the listings package<br><br><a href="https://en.wikibooks.org/wiki/LaTeX/Source_Code_Listings">https://en.wikibooks.org/wiki/LaTeX/Source_Code_Listings</a><br><br></div>Chris.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 28 August 2015 at 10:19, Christopher Howard <span dir="ltr"><<a href="mailto:ch.howard@zoho.com" target="_blank">ch.howard@zoho.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi. I'm doing a lot of Literate Haskell lately, with proofs and<br>
commentary in each module. I'm not very familiar with LaTeX, but I'm<br>
learning. (I'm using lhs2tex and texi2pdf.) However, in my commentary,<br>
I occasionally have blocks of example interpreter interaction, and I'm<br>
not sure what to do with it. Is there a certain command enclosure that<br>
would be appropriate? Ideally, it would treat the text like monospace,<br>
and also preserve line breaks. Example text would be:<br>
<br>
*GCD> extEuclidean 546 2022<br>
(6,100,-27)<br>
*GCD> 546 * 100 + 2022 * (-27) == 6<br>
True<br>
<br>
But this does not come out looking similar in the final output.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<a href="http://justonemoremathproblem.wordpress.com/" rel="noreferrer" target="_blank">http://justonemoremathproblem.wordpress.com/</a><br>
</font></span><br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div>