Problem in Latex: "There's no line here to end"

Saobi picture Saobi · Oct 31, 2009 · Viewed 27.5k times · Source

I'm using Lyx to produce a Latex document, and when i try to convert to pdf, it complains of the error: "there's no line to end", and description is "//".

My Latex document is like 200 lines without many line breaks. How am I supposed to debug this and get this darned pdf converted. I literally am stuck on this for hours, can't submit this pdf. And for 90% of the time while writing this document, the convert to pdf works fine, I don't know know since what point did it start to fail.

Someone give me a quick way to get rid of this error? Otherwise this Latex document is useless.

Thanks.

Answer

wishi picture wishi · Oct 31, 2009

That may sound stupid, but sometimes Latex needs a sign before the \, therefore:

~\\

That very much depends on the distribution you chose. LyX btw. is kind of crazy, when it comes to LaTeX export. Try auctex if you've got a month or two to spare ;)