Text Formatting
LaTeX provides extensive control over text formatting, from basic styles to advanced typography. This reference covers all essential text formatting commands and techniques.Font Styles
Basic Text Styles
Commands vs Declarations:
- Commands like
\textbf{}
affect only their argument - Declarations like
\bfseries
affect all following text in the current group
Combining Styles
Font Sizes
From smallest to largest:Font size commands are declarations—use braces to limit their scope:
Text Alignment
Paragraph Alignment
Justification Control
Color
Basic Colors
Custom Colors
Color Models
Spacing
Horizontal Spacing
Vertical Spacing
Line Spacing
Special Effects
Boxes and Frames
Rotation and Scaling
Strike-through and Underline
Advanced Typography
Microtype
Lettrine (Drop Caps)
Small Caps
Lists with Custom Formatting
Inline Lists
Custom List Styles
Quotes and Excerpts
Basic Quotes
Quote Environments
Best Practices
Text formatting tips:
- Use semantic markup -
\emph{}
for emphasis, not\textit{}
- Avoid manual formatting - Use styles and custom commands
- Be consistent - Choose a style and stick to it
- Don’t overformat - Less is often more
- Test readability - Ensure formatting enhances, not distracts
Quick Reference
Command | Effect | Example |
---|---|---|
\textbf{} | Bold | \textbf{Bold} |
\textit{} | Italic | \textit{Italic} |
\texttt{} | Monospace | \texttt{code} |
\emph{} | Emphasis | \emph{important} |
\textcolor{}{} | Color | \textcolor{red}{Red} |
\large | Larger | {\large Big} |
\centering | Center | {\centering Text} |
Next: Learn about Math Mode for mathematical typesetting or explore Lists and Enumerations for structured content.