Sven Schreiber wrote:
Daniel Watkins schrieb:LyX is creating a correct LaTeX file. If you try the same formula in a .tex file, LaTeX will complain. It's just not valid LaTeX, so you need to make it $a^{*\prime)$. This is not a LyX issue. DanSorry, that sounds self-contradictory, or is it because I should already be in bed? Right, it's not valid Latex, produced from lyx w/o ert. So your point is?
Isn't math mode ERT (without the red, and not automatically evil)? AFAIK, LyX does not "translate" commands typed into math insets any more than it translates/edits/parses commands typed into TeX insets.
If you type "\junk" in a math inset, and no such macro is defined, you'll see "junk" displayed in LyX and you'll get an error message from LaTeX. Same story with the prime (albeit quite a bit more subtle).
On-the-fly automatic correction is a tricky business at best (if you want to learn the seamier side of English, listen to me when I try to start a paragraph in Word with "a." and Word insists on capitalizing the letter). Would be a nice feature, if done correctly, but I'm not about to suggest it to the developers and find out that the sleep-deprived Angus knows where I live. :-)
/Paul
