\documentclass command selects the structure and default layout for a LaTeX document. Use article for papers without chapters, report for chapter-based reports or shorter theses, book for long two-sided works, and beamer for presentation slides.
Quick answer: choose by structure, not only by page count. If the document needs
\chapter, start with report or book; article does not define that command.Basic syntax:Common default: when no publisher or university provides a required class, article is the safest starting point for an essay, assignment, or research paper.The \documentclass Command
This is the basic syntax:
article vs report vs book vs beamer
Standard Document Classes
article
For short documents without chapters. Article Features:- No
\chaptercommand - Abstract environment available
- Compact formatting
- Good for papers under 20-30 pages
report
For longer documents with chapters. Report Features:\chaptercommand 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
- article
- report
- book
- beamer
Best for:
- Research papers (5-30 pages)
- Journal submissions
- Conference papers
- Technical reports
- Essays and assignments
- No chapters
- Compact layout
- Abstract support
- Bibliography integration
Common \documentclass Errors
Best Practices
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.
