Skip to main content
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

example.tex
Ready to use this syntax? Continue in the browser editor when you want to adapt the example in a real project.Open LaTeX Cloud Studio
example.tex
Commands vs Declarations:
  • Commands like \textbf{} affect only their argument
  • Declarations like \bfseries affect all following text in the current group

Combining Styles

example.tex

Font Sizes

From smallest to largest:
example.tex
Font size commands are declarations—use braces to limit their scope:
example.tex

Text Alignment

Paragraph Alignment

example.tex
example.tex

Justification Control

example.tex

Color

Basic Colors

example.tex

Custom Colors

example.tex

Color Models

example.tex

Spacing

Horizontal Spacing

example.tex

Vertical Spacing

example.tex

Line Spacing

example.tex

Special Effects

Boxes and Frames

example.tex

Rotation and Scaling

example.tex

Strike-through and Underline

example.tex

Advanced Typography

Microtype

example.tex

Lettrine (Drop Caps)

example.tex

Small Caps

example.tex

Lists with Custom Formatting

Inline Lists

example.tex

Custom List Styles

example.tex

Quotes and Excerpts

Basic Quotes

example.tex

Quote Environments

example.tex

Best Practices

Text formatting tips:
  1. Use semantic markup - \emph{} for emphasis, not \textit{}
  2. Avoid manual formatting - Use styles and custom commands
  3. Be consistent - Choose a style and stick to it
  4. Don’t overformat - Less is often more
  5. Test readability - Ensure formatting enhances, not distracts

Quick Reference


Next: Learn about Math Mode for mathematical typesetting or explore Lists for structured content.