Skip to main content
This reference covers the fundamental LaTeX commands you’ll use in almost every document. Commands in LaTeX start with a backslash \ and can take optional and required arguments.

Command Syntax

LaTeX commands follow this general pattern:
Note: Commands are case-sensitive. \Section is different from \section.

Text Formatting Commands

Font Styles

Font Sizes

Commands for changing text size (from smallest to largest):
Font size commands affect all text until the end of the current group. Always use braces {} to limit their scope.

Text Alignment

Spacing Commands

Horizontal Spacing

Vertical Spacing

Line Breaks and Page Breaks

Special Characters

Some characters have special meaning in LaTeX and need to be escaped:

Accents and Special Letters

Document Structure Commands

Sectioning

Title Commands

Reference Commands

Labels and References

Footnotes

List Commands

Item Commands

Box Commands

Text Boxes

Margin Notes

Utility Commands

Counters and Numbering

Conditional Text

Common Command Combinations

Emphasized Quotations

Centered Title

Custom Spacing

Best Practices

Command usage tips:
  1. Use semantic commands - \emph{} for emphasis, not \textit{}
  2. Group formatting - {\large Some text} to limit scope
  3. Non-breaking spaces - Use ~ between references: Figure~\ref{fig:1}
  4. Consistent style - Define custom commands for repeated formatting
  5. Check package requirements - Some commands need specific packages

Quick Reference Table


Next: Learn about Document Structure components or explore Text Formatting in detail.