I am trying to write multiline text inside the mathmode in Lyx like this:
I did that based on this answer. I have made it work in Lyx by defining a macro
so that the usage is
and the output is that of the first picture. But there are some problems:
As you can see I have to introduce blanc spaces "by hand" typing "\ ". I would like to be able to introduce spaces just hitting the bar (the same way as when inside a \text box).
There is no way to introduce mathematical symbols. For example if instead of "This is a nice function..." I want to write "f(x) is a nice function...".
I would like to have the possibility to introduce the characters áéíóú because I typically write in Spanish. This is also being impossible with my definition.
EDIT:
Answering to PhilipPirrip comment:
produces