Line break and new paragraph in LaTeX (double backslash, newline, par)

An empty line in the source starts a new paragraph. \\ or \newline breaks the line inside a paragraph. A single line break in the source is only a space.

New paragraph

One or more empty lines end the paragraph; \par does the same. The next paragraph starts with an indentation. How the lines are broken in the source does not matter.

This is the first paragraph.
This sentence belongs to it as well.

This is the second paragraph.
Result
The compiled example

Open in the editor

Line break inside a paragraph

\\ ends the line and continues on the next one without starting a paragraph: no indentation and no paragraph spacing. \newline does the same in normal text. Use it for addresses, verses and title pages, not to separate paragraphs.

Jane Doe\\
12 Example Street\\
London
Result
The compiled example

Open in the editor

Extra space and no page break

A length in square brackets adds space after the line: \\[6pt]. A star forbids a page break after the line: \\*.

First line\\[6pt]
second line with more space above\\*
third line, kept on the same page
Result
The compiled example

Open in the editor

Break and justify the line

\linebreak breaks the line and stretches it to the full width, while \\ leaves it short. Use it only when the line is nearly full; a short line gets wide gaps between the words and a warning, see Underfull \hbox (badness 10000) in paragraph at lines 3--4.

The first line of this paragraph is filled almost up to the right margin,\linebreak
and the break is forced here although one more word would fit.
Result
The compiled example

Open in the editor

Pitfalls

Compiled with pdfLaTeX from TeX Live 2023.

Related pages