How can I put two consecutive newlines in LaTeX? If I put two \\ the compiler gives me an error.
Asked
Active
Viewed 1.3e+01k times
69
Alexis Pigeon
- 1,519
- 9
- 14
3 Answers
92
You can either specify two line breaks with
\\~\\
or specify the height of the break (for example, for a 2-inch break)
\\[2in]
You can use this form to define the height of the break to be actually two lines
\\[2\baselineskip]
See this example: https://www.writelatex.com/read/wtyxrnxxvxhj
Alexis Pigeon
- 1,519
- 9
- 14
-
1All 3 of your commands work as advertised, but they throw the following messages when using TexMaker and linux command line pdflatex: "Type: Badbox" (the line number it happens on and "Message: Underfull \hbox ..." and these messages seem to appear no matter what type of content occurs before them. Thoughts? – Thom Ives Aug 22 '19 at 02:45
-
The first one is equivalent to
\\\\though? There's still the underfull hbox warning. (the 2 other works.) I think the most likely reason is spacing - How can I force a \hspace at the beginning of a line? - TeX - LaTeX Stack Exchange – user202729 Jan 21 '22 at 01:44
30
The “correct” way to do this is adding \medskip or \bigskip:
...
some words that end a paragraph.
\medskip % or \bigskip
Here the new paragraph starts
...
egreg
- 1,121,712
\\[\baselineskip]. – Oct 22 '14 at 14:27\\should nearly never be used in text mode, only in special environments. – Andrew Swann Mar 13 '18 at 16:07