Complete guide to LaTeX document classes. Learn when to use article, report, book, and specialized classes for different document types.
This reference covers LaTeX document classes, their options, and when to use each one. Document classes define the overall structure and formatting of your document.
Quick start: The document class is the first line of every LaTeX document: \documentclass[options]{class}. Choose the class that best matches your document type.
\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}
% 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
% 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
Alternative to standard classes with enhanced features:
Copy
Ask AI
% 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}