B. Bogart wrote:
Hello all,
I'm writing a paper in LyX, all was going well until I tried to generate
a PDF of my current draft.
LyX complains about some Latex problems, missing $, } and an extra }.
I've looked at the latex code from within lyx, I've looked at the lyx
file directly, and I've even deleted the section it complains about and
rewrote it by hand (not copy-paste) and I always get this damn error.
I've attached a screenshot to provide the most information possible.
If I copy the offending section into a new document I can generate the
file fine.
If I remove the offending section from the document (cut) the same
errors happen, but they mark a different area of text as offending.
If I copy the entire test and paste it into a new document I get the
same set of errors, but for yet another section of text.
What and where should I be looking for the cause?
This error has to do with your bibliography. (The \newblock that LaTeX
is complaining about is generated by BibTeX.) It looks like you have an
illegal character in a citation somewhere. LyX is not very good at
figuring out where these errors are, so it isn't actually where LyX is
saying it is. (This is a complicated matter.) It looks to me as if the
problem is the underscore in "ann_som". LaTeX thinks that's indicating a
subscript, but you aren't in math mode, so it's deeply confused. If you
can just take that out, that'd be simplest. Otherwise, you can escape
it, thus: ann\_som.
rh