I am using lhs2TeX to render Haskell code in LaTeX. It preprocesses the code into complex LaTeX code which is rendered (in one mode of operation) in math environment. Now, I have in this code also comments which are longer than one line. And would like to render them in a way that LaTeX wraps correctly lines as they get to the edge of the page.
So my question is, how can I insert a multiline text in math environment at a given current place (not just at the beginning of the line, but also indented, for example) so that it spans to the edge of the page automatically. minipage environment works nicely, but I have to manually specify its width. I would like to see this done automatically, based on the current location of the beginning of the minipage, to the edge of the page. Is this possible? How can I get current position on the page so that I could calculate needed height?
