Skip to main content
The \documentclass command tells LaTeX what kind of document you are writing. It controls the available structure, the default layout, and options such as font size, paper size, and one-sided or two-sided output.
Quick answer: use article for papers and assignments, report for reports and shorter theses, book for books and long dissertations, beamer for slides, and letter for formal letters.Basic syntax:
Best next read: Page numbering for long documents and Multiple columns for journal-style layouts.

Which LaTeX Document Class Should You Use?

If you only need the short version:

The \documentclass Command

This is the basic syntax:
  • class is the document class such as article, report, or book
  • options are optional settings such as font size, paper size, or one-sided vs two-sided layout

Which Document Class Should You Use?

Standard Document Classes

article

For short documents without chapters.
Article Features:
  • No \chapter command
  • Abstract environment available
  • Compact formatting
  • Good for papers under 20-30 pages

report

For longer documents with chapters.
Report Features:
  • \chapter command available
  • Abstract environment included
  • Separate title page by default
  • Good for documents 20-100 pages

book

For books and very long documents.
Book Features:
  • Two-sided layout by default
  • Front matter, main matter, back matter
  • Parts and chapters available
  • Best for 100+ page documents

beamer

For presentations and slides.
Beamer Features:
  • Built-in themes and color schemes
  • Overlay specifications for animations
  • Navigation aids
  • PDF presentation format

letter

For correspondence.
Letter Features:
  • Automatic formatting for addresses
  • Date insertion
  • Signature placement
  • Standard letter conventions

Document Class Options

Font Size Options

Paper Size Options

Layout Options

Title Page Options

Equation Options

Bibliography Options

Custom Document Classes

Creating Custom Classes

Academic Document Classes

Thesis Classes

Journal Classes

KOMA-Script Classes

Alternative to standard classes with enhanced features:

Memoir Class

Highly customizable class for books and articles:

Document Class Comparison

When to Use Each Class

Best for:
  • Research papers (5-30 pages)
  • Journal submissions
  • Conference papers
  • Technical reports
  • Essays and assignments
Features:
  • No chapters
  • Compact layout
  • Abstract support
  • Bibliography integration

Best Practices

Document class selection tips:
  1. Start with standard classes - They’re well-tested and widely supported
  2. Consider document length - Article for short, report for medium, book for long
  3. Check submission requirements - Journals often require specific classes
  4. Use options wisely - Don’t override default typography without good reason
  5. Test compilation early - Ensure your chosen class works with your packages
  6. Read class documentation - Each class has specific features and commands

Quick Reference

Standard Classes Summary

Common Options Summary

Practice in LaTeX Cloud Studio

Open a project and choose a class

Start with article, report, or beamer in the browser editor and compile early to confirm the structure.

Templates that match the class

Use a working template when you want the document class and layout decisions already in place.

Next: Learn about LaTeX Packages to extend document functionality, or explore Document Structure for hands-on examples.