Hello, I'm trying to use ERT in math mode, but as soon as I hit an escape character, it exits ERT mode.

More specifically, I'd like to second H. Peter Gumm's question (28-Oct-05). I'm trying to make ERT for xypic, but I can't get the /_/ part of
 \ar@/^/[r]
to render properly. If I type it directly, LyX seems to insist on rendering it as /_{/} which makes it complain. If I try to use ERT, LyX automatically puts a \ character before the _.

Any advice would be greatly appreciated.  Thanks!

-Bob

----
Hopefully I can be helpful by explaining a few tricky things I discovered about using xypic in LyX.

To prevent errors when using the @ symbol, I had to add
 \makeatother
to the preamble, in addition to the standard
 \input xy
 \xyoption{all}
You can create an xymatrix in math mode by typing \xymatrix. The resulting matrix will be 1x1, so to enlarge it, use "M-m w i" and "M-m c i" to add rows and columns.


Reply via email to