Skip to content
Tutorials Center
My learning

Topics

Lesson 26 of 38 ยท Packages and Templates

Document Templates: Articles, Reports, Books and Journals

Compare the article, report, book and memoir classes, set up a reusable template and learn how journal and thesis templates are structured and customised.

Starting every document from scratch wastes time. A template is a ready-made .tex skeleton with the class, packages, macros and structure you reuse. This lesson explains the standard classes, shows how to build your own template, and explains how to work with journal and university templates you download.

The standard classes

Class Top level Typical use
article \section Papers, short reports, homework
report \chapter Technical reports, theses
book \chapter, \part Books; two-sided, \frontmatter/\mainmatter/\backmatter
letter Letters (use scrlttr2 for more control)
beamer frames Slides (see Beamer basics)
memoir everything Flexible replacement for book, report and article
scrartcl, scrreprt, scrbook (KOMA-Script) European typography, easy customisation

Class options go in brackets: \documentclass[11pt, a4paper, twoside, openright]{book}. Frequent ones: 10pt/11pt/12pt, twocolumn, titlepage, draft (marks overfull boxes and skips images), fleqn (left-aligned equations) and leqno.

A reusable article template

LATEX
\documentclass[11pt, a4paper]{article}

% --- encoding and language ---
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{microtype}

% --- layout ---
\usepackage[margin=2.5cm]{geometry}
\usepackage{parskip}

% --- content ---
\usepackage{amsmath, amssymb}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage[dvipsnames]{xcolor}
\usepackage{enumitem}

% --- references (load late) ---
\usepackage[colorlinks=true, linkcolor=NavyBlue, citecolor=NavyBlue, urlcolor=NavyBlue]{hyperref}
\usepackage[capitalise]{cleveref}

\title{Title of the Document}
\author{Your Name\thanks{Your institute}}
\date{\today}

\begin{document}
\maketitle
\begin{abstract}
One paragraph summarising the work.
\end{abstract}

\tableofcontents

\section{Introduction}
\section{Method}
\section{Results}
\section{Conclusion}

\bibliographystyle{plain}
\bibliography{references}
\end{document}

Group the preamble into commented blocks so that you can see what each package is for. When it grows large, move the shared parts into preamble.tex and \input{preamble}; you can then keep one preamble for several documents.

Splitting a large document

For books and theses, divide the document into chapter files:

LATEX
% main.tex
\documentclass[12pt, a4paper, openright]{report}
\input{preamble}
\includeonly{chapters/methods}   % compile only this chapter while editing

\begin{document}
\include{chapters/intro}
\include{chapters/methods}
\include{chapters/results}
\end{document}

\include starts a new page and keeps separate .aux files so that \includeonly still remembers numbering; \input just pastes the file in place. The subfiles package lets each chapter compile on its own as well.

The stand-in below checks a project structure the way a small build script might: it reads \input and \include lines and reports missing files.

JS Check a multi-file project

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Journal and conference templates

Publishers distribute templates: IEEEtran, acmart, elsarticle, svjour3 / sn-jnl (Springer), revtex4-2 (APS), llncs (LNCS), mnras, among others. A few habits make them painless:

  • Do not edit the class file. Customise with your own macros after \documentclass.
  • Follow their sample file. Replace its text rather than building a new structure; metadata commands (\author, \affiliation, \keywords, CCS concepts) are mandatory in many.
  • Read the author guide for the bibliography. Some require BibTeX with a supplied .bst.
  • Avoid unneeded packages. Many templates already load amsmath, graphicx and hyperref; a duplicate can cause option clashes (see using packages).
  • Submit as the system asks: often a zip of the .tex, figures, .bbl and the class; arXiv requires all files to compile with the supplied TeX version.

University thesis templates

Most universities ship a class (mythesis.cls) or a skeleton with fixed front matter: title page, declaration, abstract, acknowledgements, table of contents, list of figures. Fill in the metadata macros, keep the folder layout, and add chapters in separate files. If the university has no template, a good base is report/book with geometry, setspace, fancyhdr and biblatex, or memoir. A full walk-through is in project: thesis structure.

Making your own class (a sketch)

LATEX
% mydoc.cls
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{mydoc}[2026/01/01 My class]
\LoadClass[11pt,a4paper]{article}
\RequirePackage[margin=2.5cm]{geometry}
\newcommand{\@subtitle}{}
\newcommand{\subtitle}[1]{\renewcommand{\@subtitle}{#1}}

Then \documentclass{mydoc}. For most people a shared preamble is enough.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which class has \chapter as its top sectioning level and is common for theses?

    report (and book) start at \chapter; article starts at \section.
  2. 2. What is the difference between \input and \include?

    \include is meant for chapters: it breaks the page and supports \includeonly for partial compiles.
  3. 3. What should you do with a journal's .cls file?

    Publishers expect the original class; changes risk rejection and incompatibilities.
  4. 4. Which class option adds marks for overfull lines and skips loading images?

    draft shows black bars at overfull boxes and replaces graphics with placeholders for faster compiles.

Summary

  • article, report, book, memoir and KOMA classes fit different document sizes.
  • A good template groups packages by purpose and loads hyperref and cleveref last.
  • Split big projects with \include, \includeonly and a shared preamble.tex.
  • Treat publisher classes as read-only and follow their sample files.
  • Universities supply thesis classes; if not, build on report or memoir.

Next: TikZ Basics