31

How can I put two consecutive newlines in LaTeX? If I put two \\ the compiler gives me an error.

migrated from stackoverflow.com Oct 22 '14 at 13:57

This question came from our site for professional and enthusiast programmers.

  • 1
    You should add the error you are getting. Also there is a speific stackoverflow for Latex. – plaisthos Oct 16 '14 at 8:53
  • It gives me only a question mark, sorry about putting the topic in the wrong place. – alexrn Oct 16 '14 at 8:58
  • Not sure why you need it. You could use \\[\baselineskip]. – user10274 Oct 22 '14 at 14:27
  • 2
    Perhaps this is old behaviour, but four backslashes in a row in a minimal document does not give me an error. Anyway, `\` should nearly never be used in text mode, only in special environments. – Andrew Swann Mar 13 '18 at 16:07
42

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

  • All 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 at 2:45
21

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

You could also type

\par\null\par

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy