Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

latex

lyx

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.

like image 693
Saobi Avatar asked Oct 31 '09 07:10

Saobi


2 Answers

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 ;)

like image 95
wishi Avatar answered Sep 29 '22 17:09

wishi


IMO this is the problem with LyX; when things go wrong it's hard to know where to look to fix the problem. This is a minimal document that shows an example of the error:

\documentclass{article}
\begin{document}
\\ there
\end{document}

I suggest exporting your LyX document to LaTeX, then compiling it "by hand" (with pdflatex mydoc or whatever) and see where in the document the error is appearing. You should then be able to correlate it with some misbehaving piece of the LyX document.

like image 29
Will Robertson Avatar answered Sep 29 '22 18:09

Will Robertson