Master paragraph formatting and line breaks in LaTeX. Learn how to control spacing, indentation, and text flow in your documents.
\\
:
\\
:
~
to prevent line breaks between words:
Command | Effect | Usage |
---|---|---|
\\ | Line break | Most common |
\\* | Line break (no page break) | Keeps lines together |
\newline | Line break | Alternative to \\ |
\linebreak | Suggests line break | LaTeX decides |
\nolinebreak | Prevents line break | Keeps on same line |
\\
at paragraph ends - Use blank lines instead\\
for paragraph breaks - Use blank lines\\
in a row - Use \\[space]
instead\\
- Creates underfull hbox warnings\sloppy
for problematic paragraphsWhat you want | How to do it | Example |
---|---|---|
New paragraph | Blank line | text\n\ntext |
Line break | \\ | line\\line |
No indentation | \noindent | \noindent Text |
Keep together | ~ | Fig.~1 |
Center text | \begin{center} | Centered |
Extra space | \\[1cm] | With gap |