LaTeX documentclass Guide: article, report, book, beamer and more
Learn the LaTeX \documentclass command, common class options, and when to use article, report, book, beamer, letter, and other document classes.
The \documentclass command is the first line of nearly every LaTeX document. It tells LaTeX what kind of document you are writing, which structural commands are available, and which default layout rules to apply.
Quick answer: use article for papers and assignments, report for longer reports and shorter theses, book for books and large dissertations, beamer for slides, and letter for formal letters.
\documentclass[options]{beamer}% Best for:% - Conference presentations% - Lecture slides% - Academic talks% - Business presentations% Slide structure:% \frame{} or \begin{frame}...\end{frame}% \section{} for navigation% \subsection{} for organization\usetheme{Warsaw} % Choose theme\usecolortheme{dolphin} % Choose colors\title{Presentation Title}\author{Author Name}\institute{Institution}\date{\today}\begin{document}\frame{\titlepage}\begin{frame}\frametitle{Outline}\tableofcontents\end{frame}\section{Introduction}\begin{frame}\frametitle{Introduction}\begin{itemize} \item First point \item Second point \item<2-> This appears on second click\end{itemize}\end{frame}\section{Main Content}\begin{frame}\frametitle{Main Points}Content of the slide here.\end{frame}\end{document}
\documentclass[options]{letter}% Best for:% - Business letters% - Formal correspondence% - Cover letters% - Official documents\usepackage[utf8]{inputenc}\signature{Your Name}\address{Your Address\\City, State ZIP}\begin{document}\begin{letter}{Recipient Name\\Recipient Address\\City, State ZIP}\opening{Dear Sir or Madam,}Body of the letter goes here. Multiple paragraphsare separated by blank lines.This is the second paragraph of the letter.\closing{Sincerely,}\ps{P.S. Additional note here.}\encl{Enclosure list}\end{letter}\end{document}
Your Address City, State ZIP
March 27, 2026
Dear Sir or Madam,
Body of the letter goes here. Multiple paragraphs are separated by blank lines.
% Available font sizes\documentclass[10pt]{article} % 10pt (default)\documentclass[11pt]{article} % 11pt\documentclass[12pt]{article} % 12pt% Font size affects:% - Body text size% - Section heading sizes% - Math formula sizes% - Footnote sizes
10pt
This is the default article text size.
11pt
This size gives slightly more breathing room for body text.
12pt
This version is more spacious and is common in reports and theses.
% Title page behavior\documentclass[titlepage]{article} % Separate title page\documentclass[notitlepage]{report} % Title on first page% Abstract behavior (for article)\documentclass[onecolumn]{article} % Abstract spans full width\documentclass[twocolumn]{article} % Abstract spans both columns
Document Title
Separate title page enabled
With titlepage, the title sits on its own page before the document body starts.
Alternative to standard classes with enhanced features:
Code
Rendered output
% KOMA-Script equivalents\documentclass{scrartcl} % Instead of article\documentclass{scrreprt} % Instead of report\documentclass{scrbook} % Instead of book\documentclass{scrlttr2} % Instead of letter% Enhanced features\documentclass[ fontsize=11pt, paper=a4, twoside=false, titlepage=false, headings=small]{scrartcl}% KOMA options\KOMAoptions{ DIV=12, % Text area calculation BCOR=8mm, % Binding correction headinclude=true, % Include header in text area footinclude=false % Exclude footer from text area}
KOMA-Script Article
Balanced margins, tuned heading sizes, and configurable type area
Introduction
KOMA-Script classes are often chosen when you want better European defaults and more layout controls without building a custom class from scratch.