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 \newline

What 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.

Fails
\documentclass{article}
\begin{document}
The first paragraph ends here.

\newline
The second paragraph.
\end{document}
Fixed
\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.

Fails
\documentclass{article}
\begin{document}
\section{Results}
\newline The yield increased.
\end{document}
Fixed
\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

Every example on this page was compiled with pdfLaTeX to check that it fails and is fixed as described. All LaTeX errors