New lines and paragraphs in LaTeX
\\ or \newline ends a line and starts the next inside the same paragraph; a blank line, or \par, starts a new paragraph.
LaTeX command
First line\\ Second lineNot the symbol you meant? Draw it to find the command →
Typing up handwritten notes? Convert a whole page of handwriting to LaTeX →
LaTeX ignores single line breaks in your file and fills lines itself, which is why pressing Enter once changes nothing. A blank line starts a new paragraph, indented by default. \\ breaks the line without a new paragraph, and \\[6pt] adds 6 pt of extra space after the break. \linebreak breaks too, but stretches the line it ends to the full width.
\\ at the start of a paragraph, or twice in a row to make a gap, stops with 'There's no line here to end'. For vertical space, use \vspace{1em}, \medskip or \bigskip instead. For no indents and a gap between paragraphs throughout, load the parskip package.
In maths, \\ only works inside environments that have lines: align, gather and multline, or aligned inside an equation. In a table cell, use \newline inside a p{width} column, or the makecell package, since a bare \\ ends the table's row.
Line breaks and space in text
A line break, a line break with extra space, and space between paragraphs.
First line\\ Second lineFirst line\\[6pt] Second line\vspace{1em}Other forms
\newlinea line break, the same as \\\\[6pt]a line break with extra space\para new paragraph, like a blank line\linebreaka break with the line stretched to full widthExamples
$\begin{aligned} (a+b)^2 &= a^2 + 2ab + b^2 \\ &= 9 \end{aligned}$a new line in an equation, with aligned
$\begin{gathered} x + y = 5 \\ x - y = 1 \end{gathered}$centred lines with gathered
$\begin{array}{l} \text{First line} \\ \text{Second line} \end{array}$two lines of text
Tips and common mistakes
- One Enter in your file does nothing; leave a blank line for a new paragraph.
- Use \\ for a line break inside a paragraph, not to make empty space.
- Make vertical space with
\vspace,\medskipor\bigskip. - In equations, break lines inside align or aligned, not in a plain equation.
- In a table cell, use
\newlinein a p{width} column.
Working from handwritten notes?
LatexNotes turns a photo or PDF of handwritten mathematics into LaTeX, graphs and all. It is built with real pdflatex before you see it, and the .tex file is yours to edit or take to Overleaf. Free to try, no sign-up.
See how handwriting to LaTeX works, step by step, or go from GoodNotes to LaTeX if you write on an iPad (Notability works the same way).
Convert your maths to LaTeX →FAQ
How do I start a new line in LaTeX?
Write \\ or \newline. For a new paragraph, leave a blank line.
Why do I get 'There's no line here to end'?
A \\ comes where no line has started, such as after a blank line. Use \vspace{...} for space instead.
How do I break a line in an equation?
Use align, or aligned inside an equation, and put \\ where each line ends.
How do I break a line inside a table cell?
Use a p{width} column and \newline, or the makecell package.