LaTeX newline command

\\ inserts a new line into texts in LaTeX.

Lorem ipsum dolor sit amet,\\
consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\\
Ut enim ad minim veniam,\\
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
output

One \\ sets no additional spacing between sentences. But two \\ (Four backslashes) make certain size of spaces.

Lorem ipsum dolor sit amet,\\
consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\\
Ut enim ad minim veniam,\\\\
quis nostrud exercitation ullamco \\\\\\
laboris nisi ut aliquip ex ea commodo consequat.
output

Optional argument

Lorem ipsum dolor sit amet,\\
consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore \\
et dolore magna aliqua.\\[0.1pt]
Ut enim ad minim veniam,\\[15pt]
quis nostrud exercitation ullamco \\[40pt]
laboris nisi ut aliquip ex ea commodo consequat.
output

The value in brackets means how much the vertical spacing between texts is.

Lorem ipsum dolor sit amet,\\
consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore \\
et dolore magna aliqua.\\
Ut enim ad minim veniam,\\[2\baselineskip]
quis nostrud exercitation ullamco \\[3\baselineskip]
laboris nisi ut aliquip ex ea commodo consequat.
output

Comments

Powered by Markdown

More