\\ or \newline. LaTeX handles normal line wrapping automatically, so most formatting problems on this topic come from confusing paragraphs with manual line breaks.
Key concept: LaTeX decides line breaks for you to create optimal text flow. You control paragraph breaks, and LaTeX handles the rest.
How LaTeX Handles Paragraphs
Creating Paragraphs
In LaTeX, a blank line creates a new paragraph:- Code
- Rendered output
Multiple Spaces and Line Breaks
LaTeX treats multiple spaces as one and ignores single line breaks:- Code
- Rendered output
Manual Line Breaks
Using Double Backslash
Force a line break within a paragraph using\\:
- Code
- Rendered output
Line Break with Extra Space
Add vertical space after a line break:The \newline Command
Alternative to\\:
Preventing Line Breaks
Non-breaking Space
Use~ to prevent line breaks between words:
\mbox Command
Keep text together on one line:Paragraph Formatting
Paragraph Indentation
Control first-line indentation:Paragraph Spacing
Control space between paragraphs:Special Paragraph Commands
\par Command
Explicitly end a paragraph:Centered Text
Flush Left and Right
Advanced Line Breaking
Preventing Hyphenation
Line Breaking Commands
Page Breaking
Control where pages break:Common Patterns
Address Format
Poetry or Verses
Quotations
Best Practices
Common Mistakes
Troubleshooting
Underfull/Overfull hbox
If you get these warnings:- Let LaTeX handle line breaking
- Use
\sloppyfor problematic paragraphs - Rewrite sentences if needed
Unwanted Page Breaks
Inconsistent Spacing
Check these settings:Quick Reference
Next: Learn about Bold, italics and underlining to add emphasis to your text.
