Theses and Papers

How to Write a Research Paper in LaTeX: Structure and Sections

Learn the structure of a research paper in LaTeX: the preamble, standard sections, labels and cross-references, citations, figures, tables and equations.

On this page
  1. Start from the right class
  2. Set up the preamble
  3. Sections of a research paper
  4. Labels and cross-references
  5. Citations and BibTeX
  6. Figures and tables
  7. Equations
  8. Compile, then rerun
  9. Checklist

A research paper in LaTeX is a .tex file with a preamble, a title block, an abstract and a set of sections, plus a .bib file for the references. If the venue provides a class, start from it. If it does not, the standard article class with a few packages is enough for a preprint or a first draft. This guide covers the setup, the sections most papers share, labels and cross-references, and the compile steps.

Start from the right class

Many venues require their own class, and the class changes the layout, so use it when it is given:

If a venue gives no template, article at 11pt or 12pt with a margin set by geometry is a common choice. The thesis-length layout with chapters is covered in the thesis guide.

Set up the preamble

The preamble is everything before \begin{document}. Here is a setup that covers most papers:

\documentclass[11pt]{article}
\usepackage[margin=2.5cm]{geometry}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage[hidelinks]{hyperref}

\title{Title of Your Paper}
\author{Jane Doe \\ Example University}
\date{}

Each package has one job. amsmath provides the equation environments, graphicx includes figures, and booktabs gives clean table rules. Load hyperref near the end of the preamble, because it changes how other packages behave.

Sections of a research paper

Most papers follow this order, although fields and venues vary:

  • Abstract. The problem, the method and the main result, in one paragraph.
  • Introduction. The context, the gap the work addresses, the contributions and an outline of the paper.
  • Related work. What others have done, and how this work differs.
  • Method. Enough detail for a reader to repeat the work.
  • Results. What you measured, presented with figures and tables.
  • Discussion. What the results mean, and their limits.
  • Conclusion. A short summary and, if relevant, future work.
  • References.
  • Appendix (optional), for material that would interrupt the main text. See how to add an appendix in LaTeX.

A skeleton with the sections in place looks like this:

\begin{document}
\maketitle

\begin{abstract}
One paragraph summarizing the problem, the method and the main result.
\end{abstract}

\section{Introduction}\label{sec:intro}
...

\section{Method}\label{sec:method}
...

\section{Results}\label{sec:results}
Section~\ref{sec:method} describes the setup used here.

\section{Conclusion}\label{sec:conclusion}
...

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

Many writers draft the method and results first, because those are the sections they know best. They write the introduction and abstract last, once they know what the paper actually shows.

Labels and cross-references

A label gives a name to a section, figure, table or equation, so you can refer to it without typing its number:

  • \label{key} goes after the \section, inside the \caption, or inside the equation environment.
  • \ref{key} prints the number, as in “Section 2”.
  • \eqref{key} prints an equation number in parentheses. How to label an equation covers equation labels in detail.
  • Write Section~\ref{...} with a tilde, which keeps the number on the same line as its word.

Numbers are only known after a compile, so LaTeX prints a warning when a label has changed. The message “Label(s) may have changed. Rerun to get cross-references right” means you should compile again. If you use the cleveref package, \cref{key} prints the type as well, as in “Figure 2”. Load cleveref after hyperref.

Citations and BibTeX

Keep every reference in one refs.bib file, and export it from a reference manager such as Zotero or JabRef. A BibTeX entry looks like this. Replace it with a real source:

@article{doe2024method,
  author  = {Doe, Jane and Roe, John},
  title   = {Title of the Article},
  journal = {Journal Name},
  year    = {2024},
  volume  = {1},
  pages   = {1--10}
}

Cite it with \cite{doe2024method}. The plain bibliography style prints numbered references. If the venue needs author-year citations, use natbib with \citep and \citet, or use biblatex with biber. Pick one system for the whole paper.

A citation that prints as [?] or (?) means the key is missing from the .bib file, or the file was not processed.

Figures and tables

A figure has a caption, a label and a file. The guide to inserting images in LaTeX covers formats and sizing. Vector PDFs for plots and diagrams stay sharp at any size, and pdflatex includes them directly.

\begin{figure}[htbp]
  \centering
  \includegraphics[width=0.8\linewidth]{figures/results.pdf}
  \caption{Accuracy against the number of training examples.}
  \label{fig:results}
\end{figure}

A table uses booktabs rules, with the caption above it:

\begin{table}[htbp]
  \centering
  \caption{Settings used in the experiments.}
  \label{tab:settings}
  \begin{tabular}{lc}
    \toprule
    Parameter & Value \\
    \midrule
    Learning rate & 0.001 \\
    Epochs & 20 \\
    \bottomrule
  \end{tabular}
\end{table}

Use \midrule only to separate the header from the data, which keeps the table easy to read. Check that each figure and table is referred to in the text, and that every label is used.

Equations

Display an equation with the equation environment, and give it a label if you refer to it:

\begin{equation}
  \label{eq:objective}
  \min_{\theta} \; \mathcal{L}(\theta)
\end{equation}

For several lines that align at a symbol, use align from amsmath, as shown in aligning equations with align. Avoid the older eqnarray environment, because its spacing is inconsistent and many journals now discourage it.

Compile, then rerun

With latexmk, one command does the repeated runs:

latexmk -pdf paper.tex

Without it, run pdflatex, then bibtex or biber, then pdflatex twice. Read the warnings in the log, because “Citation undefined” and “Reference undefined” point to the exact problem.

Checklist

  • No “??” in the PDF, which means every reference resolves.
  • No “[?]” or “(?)” citations, which means every key is in the .bib file.
  • Every figure and table is referred to in the text, and each is readable at print size.
  • The paper meets the venue’s page limit and format, including the template and its layout.
  • The author names and affiliations are final, and match the submission system. The author name guide covers the formats.

The complete guide to theses and papers

How to Write a Thesis in LaTeX: Templates and Title Pages
Read the guide

Keep exploring

Guides from other topics

All topics →