LaTeX Error: There's no line here to end
A line break (\\ or \newline) comes where no line has started, typically after a blank line. Use \vspace or \medskip for vertical space.
Help centre › LaTeX errors › Floats and layout · Error: the build stops or the output is wrong
What the log says
! LaTeX Error: There's no line here to end.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.6 \newlineWhat it means
\\ and \newline end the current line of a paragraph. LaTeX met one between paragraphs, where there is no line to end: after a blank line, at the start of the document or after a heading. Researchers usually reach for \\ to add vertical space, which is what \vspace, \smallskip, \medskip and \bigskip are for.
Causes and fixes
Most common first. Each example is a complete document; the first fails with this message, the second is the same document fixed.
1. \\ or \newline after a blank line, to add space between paragraphs
Remove the line break and use \medskip (or \vspace{1em}) between the paragraphs; to space all paragraphs, set \parskip or load the parskip package.
\documentclass{article}
\begin{document}
The first paragraph ends here.
\newline
The second paragraph.
\end{document}\documentclass{article}
\begin{document}
The first paragraph ends here.
\medskip
The second paragraph.
\end{document}2. A line break at the very start of a paragraph or after a heading
\\ right after \section{…}, \maketitle or \begin{document} has nothing before it to end. Delete it; headings already end their line.
\documentclass{article}
\begin{document}
\section{Results}
\newline The yield increased.
\end{document}\documentclass{article}
\begin{document}
\section{Results}
The yield increased.
\end{document}3. A line break directly after a description label
In a description list, \item[Term]\\ can stop with this error because the label is not a line of text. To start the definition on a new line, write \item[Term] \mbox{}\\ or use the enumitem package's style=nextline.
In Manulyx
The editor shows the error beside the line break, with an explanation.
Write in Manulyx for free · Journal templates
More in floats and layout
- LaTeX Error: Not in outer par modeA figure, table or \marginpar is inside a box, minipage, table cell or another float. Floats must be in the main text; put the box inside the float.
- LaTeX Error: Too many unprocessed floatsFigures and tables are queued faster than LaTeX can place them, often behind one that cannot be placed. Relax placements, shrink it, or add \clearpage.
- LaTeX Error: Float(s) lostA figure or table sits inside a footnote, a framed box or a similar construct LaTeX cannot place floats from, and it disappears. Move it into the text.
- Overfull \hbox (<n>pt too wide) in paragraph at lines <a>--<b>A line sticks out into the margin because TeX found no acceptable place to break it: a long URL or word, or an image or equation wider than the column.
- Underfull \hbox (badness <n>) in paragraph at lines <a>--<b>A line had to be stretched more than TeX likes, leaving wide gaps between words. Usually caused by \\ or \linebreak in running text.
- LaTeX Warning: Float too large for page by <n>pt on input line <n>.A figure or table is taller than the text area, so it overprints the footer or runs off the page. Scale it to fit, or split a long table.
Every example on this page was compiled with pdfLaTeX to check that it fails and is fixed as described. All LaTeX errors