I'm a long-term LaTeX user trying to figure LyX out. Sometimes, the subscript underscore behavior works just fine. But, after I write an equation, if I go back to edit it, if I later add an underscore, it treats it like I really want an underscore in the equation. In other words, I type
_ and in the tex source,
\_ appears. But that's not what I want! I truly want to add a subscript and I can't figure out how to tell it not to add the backslash and I don't know how to edit the TeX source directly. What do I do?
Edit: I figured out the issue and how to reproduce it. Go into math mode and type
\text <space> t_a and notice that the term "t_a" appears on the screen rather than "a" being an underscore. This makes sense. But now, let's say I realized that going into text mode was a mistake. Well, how do I get out of it? Do I just need to edit the .tex code directly? Obviously, for this simple example, I can just delete the whole equation and start from scratch. But when this issue first arose, it was in the context of a giant equation and I was having problems fixing it and it was hard to debug because I didn't know that the \text was causing problem until digging into the LaTeX code itself.