B. Bogart wrote:
Thank RH,

That indeed was it.

So in general I should always be careful about using underscores in LyX?

LyX itself will take care of them, as it also takes care of other characters that have special meaning to LaTeX: \, &, { , }, [, ], etc. You can see this if you type in a new document: this [ERT &] that, where ERT is the inset you get from Insett>TeX Code. Change it to just: this & that, and it's fine. If you check ViewSource, you'll see that LyX has escaped the & for you: this \& that. LyX won't touch the ERT.

And LyX doesn't know about your BibTeX files, or any other external material you might include. So you have to be careful about all such characters in such files. You also, by the way, need to be careful about the encoding used in the file. (There was some recent discussion here about that.) It's safest not to use unicode characters in BibTeX files but instead to use such LaTeX constructs as: \"a, \'o, \O, etc, to get accented etc characters.

Richard

Reply via email to