How to write a report in LaTeX
Start the file with \documentclass{report}, set\title, \author and \date, then call \maketitle and \tableofcontents and write the body in \chapter and \section. The report class gives the title its own page and starts each chapter on a new page. Compile twice so the table of contents fills in.
\documentclass[12pt,a4paper]{report}
\title{Annual Report}
\author{Jane Doe}
\date{\today}
\begin{document}
\maketitle
\tableofcontents
\chapter{Introduction}
This report covers the work done this year.
\section{Background}
Some background.
\chapter{Results}
What we found.
\end{document}12pt sets the body font size (10pt, 11pt and 12pt are available) and a4paper the paper; useletterpaper in the US. The first compile writes the headings to a .toc file and the second prints them.
Report, article or book?
| Class | Use for |
|---|---|
| report | Long reports and theses: has \chapter, a separate title page and an abstract page. |
| article | Short reports, lab reports and papers: no chapters, title at the top of page 1. |
| book | Two-sided books: chapters open on right-hand pages. |
| scrreprt | KOMA-Script's report class: the same commands, with more layout options. See theKOMA-Script Report template. |
The other parts of a report
\documentclass{report}
\begin{document}
\begin{abstract}
One paragraph summarising the report.
\end{abstract}
\tableofcontents
\listoffigures
\listoftables
\chapter{Introduction}
Text.
\appendix
\chapter{Raw data}
Tables.
\end{document}abstractprints a summary on a page of its own in the report class.\listoffiguresand\listoftableslist every captioned figure and table.- After
\appendix, chapters are lettered A, B, C instead of numbered. - For references, see thebibliography guide; for notes,LaTeX footnotes.
Report templates
A template saves setting up the title page, headers and layout:
- Business reports, such as theSullivan Business Report and theProject Report Template.
- Laboratory reports, such as theSimple Laboratory Report.
- Title pages, to put a cover on a report you already have. See alsohow to make a cover page.
- Theses, for a dissertation or long project report.
Related
New to LaTeX? Start withLaTeX for beginners. Equations and lists are covered inaligning equations andLaTeX lists.