Skip to main content
Every LaTeX document begins with \documentclass[options]{class}, which selects the sectioning hierarchy, page geometry, and default layout. Choose article for papers without chapters, report for chapter-based single-sided documents, book for two-sided books with front and back matter, letter for correspondence, and beamer for slides.

Standard and widely used document classes

The defaults below come directly from each class’s .cls file in TeX Live 2026: scrartcl, scrreprt, and scrbook are the KOMA-Script replacements for article, report, and book; they default to A4 paper and 11pt body text and accept key-value options such as fontsize=12pt and paper=letter. memoir combines book, report, and article features with built-in layout and chapter styling.

Common class options

Pass comma-separated options in square brackets, for example \documentclass[11pt,a4paper,twoside]{report}. This example combines 11pt, twocolumn, fleqn, and leqno in article:
article-options.tex
Ready to use this syntax? Continue in the browser editor when you want to adapt the example in a real project.Open LaTeX Cloud Studio

article vs report vs book

Pick between the three standard prose classes by structure rather than page count alone:
  • article vs report: report adds \chapter (starting each chapter on a new page), puts \maketitle on a separate title page by default, and numbers sections inside chapters (1.1, 1.2). Using \chapter in article fails with Undefined control sequence. Both default to oneside and provide the abstract environment.
  • report vs book: book defaults to twoside and openright (inserting a blank even page when needed so each chapter starts on a right-hand page), defines \frontmatter (Roman page numbers, unnumbered chapters), \mainmatter (Arabic page numbers), and \backmatter, and omits the abstract environment.
For heading levels and numbering depth across these classes, see Sections and chapters.
report-chapter.tex

Publisher and custom classes

When a journal, conference, or university supplies a .cls file (such as IEEEtran, acmart, or elsarticle), use that class rather than recreating its layout on top of article. To write your own .cls file with \LoadClass and \RequirePackage, see Create a document class.

Try it in the editor

All standard classes, memoir, beamer, and KOMA-Script are installed in LaTeX Cloud Studio’s TeX Live 2026 environment. Start from the Basic Article template in LaTeX Cloud Studio and replace main.tex with the complete example.