How to Use LaTeX for Academic Writing

How to use LaTeX for academic writing: journal templates, paper structure, citations with BibTeX or biblatex, figures, tables, cross-references and arXiv.

By Scholarly11 min read

To use LaTeX for academic writing, start from your target journal's or university's template, write the paper as a main .tex file with one file per section, keep references in a .bib file exported from a reference manager such as Zotero, add figures and tables with graphicx and booktabs, refer to everything with \label and cleveref, write numbers and units with siunitx, and compile with latexmk before you submit the source to a journal or arXiv. That workflow covers most papers in math, physics, computer science, engineering and economics, and it carries over directly to a thesis. This guide walks through each step with code you can copy.

How to Use LaTeX for Academic Writing editorial illustration

The workflow at a glance

  1. Pick the template your venue requires (table below) and open it in Overleaf or a local editor.
  2. Set up the project folder: paper.tex, sections/, figures/, refs.bib.
  3. Write the abstract and section headings first, then fill in sections.
  4. Add citations from your reference manager as you write.
  5. Insert figures and tables with labels; refer to them with \cref.
  6. Compile with latexmk, fix warnings, check every reference and citation resolved.
  7. Package the source for submission (journal system or arXiv).

Step 1: Start from the journal or conference template

Most publishers distribute an official LaTeX class. Using it from the first draft saves a painful reformat later, because the class controls the title block, citation style, figure captions and page layout.

Publisher or venue Class Notes
Elsevier journals elsarticle Options such as preprint and review switch between single-column drafts and journal-like layouts; uses natbib citations
IEEE journals and conferences IEEEtran Options such as conference and journal; comes with the IEEEtran.bst bibliography style
Springer Nature journals sn-jnl (current Springer Nature template) Older Springer journals used svjour3; check the journal's author instructions for which one it wants
ACM journals and conferences acmart One class for all ACM venues; formats such as sigconf (conferences) and acmsmall (journals)
APS physics journals (Physical Review) and AIP revtex4-2 (REVTeX) Options select the journal, for example prl or prb, and twocolumn
AMS math journals amsart Includes theorem support from amsthm
Theses Your university's class, if it has one Many are in the Overleaf gallery; see our guide to writing a thesis in LaTeX

Find these on the publisher's author-guidelines page, on CTAN, or in the Overleaf template gallery, where many publishers maintain official versions. If your target journal is undecided, write in plain article with the structure below; moving content into a journal class later is mostly copy and paste.

Step 2: Structure the paper

A main file holds the preamble and the order of sections; each section lives in its own file. This keeps diffs small, lets coauthors work in parallel, and makes reordering sections easy.

paper/
  paper.tex
  refs.bib
  sections/
    intro.tex
    methods.tex
    results.tex
  figures/
    setup.pdf

Here is a complete paper skeleton in the standard article class. Save it as paper.tex next to the refs.bib file shown after it, then run latexmk -pdf paper (which also runs biber). Every piece is explained below.

\documentclass[11pt]{article}

\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[margin=1in]{geometry}
\usepackage{microtype}
\usepackage{amsmath,amssymb}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{siunitx}
\usepackage[backend=biber,style=numeric-comp,sorting=none]{biblatex}
\addbibresource{refs.bib}
\usepackage{hyperref}
\usepackage[capitalise,noabbrev]{cleveref}   % load after hyperref

\title{Thermal Conductivity of Recycled Aluminum Alloys}
\author{A. Author\thanks{Department of Physics, Example University.} \and B. Author}
\date{}

\begin{document}
\maketitle

\begin{abstract}
One paragraph: the question, what you did, the main result with a number, and why it matters.
\end{abstract}

\section{Introduction}\label{sec:intro}
Earlier measurements cover fewer alloys~\cite{example2024}. We extend this in \cref{sec:methods}.

\section{Methods}\label{sec:methods}
Samples were held at \qty{295.0 +- 0.5}{\kelvin}. \Cref{tab:samples} lists them and \cref{fig:setup} shows the setup.

\begin{figure}[tbp]
  \centering
  \rule{0.6\linewidth}{4cm}% replace with \includegraphics[width=0.6\linewidth]{figures/setup.pdf}
  \caption{Measurement setup.}
  \label{fig:setup}
\end{figure}

\begin{table}[tbp]
  \centering
  \caption{Samples and measured conductivity.}
  \label{tab:samples}
  \begin{tabular}{l S[table-format=3.1] S[table-format=1.2]}
    \toprule
    {Sample} & {$k$ (\unit{\watt\per\metre\per\kelvin})} & {Recycled fraction} \\
    \midrule
    A1 & 205.3 & 0.00 \\
    A2 & 198.7 & 0.50 \\
    A3 & 191.2 & 1.00 \\
    \bottomrule
  \end{tabular}
\end{table}

\section{Results}\label{sec:results}
\begin{equation}\label{eq:fourier}
  q = -k \nabla T
\end{equation}
Using \cref{eq:fourier}, ...

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

\printbibliography
\end{document}

A minimal refs.bib for the skeleton (replace it with the file your reference manager exports):

@article{example2024,
  author  = {Doe, Jane and Roe, Richard},
  title   = {A Placeholder Study of Alloy Conductivity},
  journal = {Journal of Examples},
  year    = {2024},
  volume  = {1},
  pages   = {1--10}
}

The data in the table and the reference are placeholders; swap in your own. As the paper grows, move each section into sections/ and replace its text with \input{sections/methods}.

Writing tips that apply to any academic paper:

  • Abstract last, outline first. Write the section headings and a one-sentence purpose under each before drafting. Write the final abstract after the results are settled.
  • One idea per paragraph, with the claim in the first sentence. LaTeX does not care about paragraph length, but readers do.
  • One sentence per line in the source. It makes Git diffs and coauthor comments far easier to read, and LaTeX joins the lines into normal paragraphs.

Step 3: Citations and the bibliography

Keep every reference in a .bib file and cite by key with \cite{key}. You then have two systems to choose from:

BibTeX (with natbib or a .bst style) biblatex with biber
Where it is used Most journal classes (elsarticle, IEEEtran, revtex4-2, acmart by default) Theses, books, humanities and many university templates
Styles Fixed by the .bst file the journal supplies Changed with options (style=apa, style=authoryear, style=ieee)
Unicode in names and titles Limited Full
Rule of thumb Use it when the journal's template uses it Use it when you control the style

Do not switch a journal template to biblatex unless the author instructions allow it; production teams often expect the journal's own .bst.

Getting references into the .bib file. Zotero with the Better BibTeX add-on is the most common setup: it gives every item a stable citation key (such as lamport1994) and can keep a .bib file in your project folder automatically updated as you add papers. JabRef and Mendeley export BibTeX as well, and Google Scholar's "Cite" link gives a BibTeX entry for a single paper (check it, because the fields are often incomplete). On Overleaf, upload the exported .bib file or use its reference manager integrations on plans that include them. Our LaTeX bibliography guide covers citation commands and styles in more depth.

Step 4: Figures and tables

  • Figures. Use \includegraphics inside a figure environment, with \caption before \label. Export plots as vector PDF where possible (Matplotlib, R and MATLAB all can) so text stays sharp at any zoom. Size by \linewidth rather than fixed centimeters so the figure adapts to one- or two-column layouts. Details and placement fixes are in our guide to inserting images in LaTeX.
  • Tables. Use booktabs rules (\toprule, \midrule, \bottomrule) and no vertical lines, which is the layout most journals use. The siunitx S column aligns numbers on the decimal point. Put the caption above a table and below a figure, unless the journal's class decides for you. For merged cells, long tables and tables from spreadsheets, see how to create tables in LaTeX.
  • Placement. Use [tbp] and let LaTeX place floats. If a figure lands far from its first mention, the usual fix is to move the figure code earlier in the source, not to force [h!].

Step 5: Cross-references with cleveref

Label every section, figure, table and equation, and never type a number yourself. cleveref adds the name automatically:

\usepackage{hyperref}
\usepackage[capitalise,noabbrev]{cleveref}  % must come after hyperref

As shown in \cref{fig:setup} and \cref{eq:fourier,eq:energy}, ...
\Cref{tab:samples} lists the samples.        % \Cref at the start of a sentence

\cref{fig:setup} prints "Figure 1" (with the options above), \cref{eq:fourier,eq:energy} prints "Equations (1) and (2)", and the text updates if you reorder sections. Remove noabbrev if your field prefers "Fig." and "Eq.". Some journal classes conflict with cleveref or have their own conventions, so check the template; plain \ref and \eqref always work.

Step 6: Numbers and units with siunitx

siunitx formats numbers and units consistently across the whole paper:

\num{6.022e23}                       % 6.022 x 10^23
\qty{9.81}{\metre\per\second\squared}
\qty{295.0 +- 0.5}{\kelvin}          % value with uncertainty
\qtyrange{10}{20}{\celsius}
\unit{\watt\per\metre\per\kelvin}    % unit alone, e.g. in a table header

Version 3 of siunitx introduced \qty and \unit; older papers and templates use \SI and \si, which still work. Global options such as \sisetup{per-mode=symbol} switch every unit in the paper to slash notation at once, which is useful when a journal's style differs from yours.

LaTeX for scientific writing

Scientific papers, lab reports and experimental theses follow the same LaTeX workflow, with a few extra habits that matter when your results are measurements.

Use the structure reviewers expect. Most experimental papers follow IMRaD: Introduction, Methods, Results, and Discussion, often with a Conclusion. Keep methods reproducible: instruments, settings, sample sizes, and units for every quantity. A lab report usually adds an aim, apparatus, raw data and error analysis.

Keep numbers honest and consistent.

  • Write every measurement with \qty, and its uncertainty with +-, so units and significant figures are consistent from the abstract to the appendix.
  • Align numeric table columns with S columns, and state units in the column header rather than in every cell.
  • Use \num for plain numbers with exponents so you never mix "6.0e23" and "6.0 x 10^23" in one paper.

Generate figures from data, not by hand. Keep the script that makes each plot (Python with Matplotlib, R with ggplot2, or pgfplots inside LaTeX reading a CSV file) next to the figure in the project folder. When the data changes, you rerun the script and recompile, and the figure in the paper matches the data.

Field-specific packages worth knowing.

Field Package What it does
Chemistry mhchem (or chemformula, which uses \ch) Chemical formulas and reactions: \ce{2H2 + O2 -> 2H2O} with mhchem
Chemistry chemfig Structural formulas
Physics and engineering circuitikz Circuit diagrams
Biology and medicine Often Word, see below Many life-science journals prefer .docx submissions
Data-heavy work pgfplots Plots drawn from data files inside the document
Computer science algorithm2e or algorithmicx, listings or minted Pseudocode and source code listings

When not to use LaTeX. Many biology, medicine and social science journals accept or prefer Word files, and coauthors in those fields often work in Word with Zotero's Word plugin. If your target journal asks for .docx, write in Word. For data-heavy papers where the analysis and the text should stay together, Quarto or R Markdown can produce a LaTeX-typeset PDF from a document that also runs your code.

For lab reports specifically, Scholarly's lab report writer turns your procedure notes and measurements into a draft with the standard sections, from abstract to conclusion. Check every number against your data before moving the text into your LaTeX template.

Step 7: Compile and check

  • Compile with latexmk -pdf paper (or Overleaf's Recompile). It reruns LaTeX and biber or bibtex until references settle.
  • Search the log for undefined references, Citation ... undefined and Overfull \hbox. A ?? in the PDF means a label is missing or misspelled.
  • Read the PDF, not the source, for a final proofread. Check that every figure and table is mentioned in the text, and every citation appears in the bibliography.

Step 8: Submit to a journal or arXiv

Journals. Many journals accept a PDF for review and ask for the full LaTeX source after acceptance. Follow their file instructions exactly: usually the .tex files, the .bib or .bbl file, figures in the requested formats, and any custom class files. Some journals accept submissions straight from Overleaf.

arXiv. arXiv prefers LaTeX source to a PDF and compiles it on its own servers. To avoid failed submissions:

  • Upload either your .bib file or the generated .bbl file with the .tex files. arXiv runs BibTeX, or the backend biblatex selects, when it finds a .bib, and uses a .bbl instead if one is present. An uploaded biblatex .bbl must match the biblatex version arXiv uses, so uploading the .bib is the simpler choice (arXiv's TeX submission help, checked November 2026).
  • Use figures that pdfLaTeX accepts (PDF, PNG, JPG) and relative paths such as figures/setup.pdf. File names are case sensitive on arXiv's servers.
  • Remove unused files and comments you do not want public; the source of an arXiv paper can be downloaded by anyone.
  • Documents that need XeLaTeX or LuaLaTeX (for example for system fonts) need extra care. Check arXiv's current submission help before relying on them.
  • Preview the compiled PDF arXiv produces before you confirm the submission.

Common problems in academic papers

Problem Cause Fix
Citations print as [?] Bibliography step not run, or key misspelled Run latexmk, check the key in the .bib file
\cref prints "??" cleveref loaded before hyperref, or label missing Load cleveref last; put \label after \caption
Figure appears pages later Float too large for the space Reduce width, move the code earlier, use [tbp]
Table wider than the column Too many columns Use table* in two-column layouts, abbreviate headers, or use tabularx
Journal rejects source Custom packages not in its TeX installation Include your .sty files, avoid rare packages, follow the author guide

Tools that help

  • Overleaf. Browser editor with real-time collaboration and publisher templates; best for coauthored papers and people who do not want to install TeX.
  • TeX Live, MacTeX or MiKTeX with VS Code (LaTeX Workshop) or TeXstudio. Best for offline work, Git workflows and large documents.
  • Zotero with Better BibTeX. Best for keeping a .bib file in sync with your library.
  • Typst. A newer typesetting system with simpler syntax and very fast compiles; best for documents where no one requires .tex source, since few journals accept it yet.

When you are reading for a paper rather than writing it, Scholarly can help: upload the papers you are citing and ask questions in chat with answers cited to the source, or turn a dense paper into a summary and study notes. It does not open or compile your own .tex project, so the paper itself stays in your editor.