Why is Latex Used in Math? Exploring the Benefits of Latex in Mathematical Notation
Why LaTeX is used in math: how TeX began, why mathematicians and journals prefer it, its benefits with examples, honest drawbacks, and the main alternatives.
LaTeX is used in math because it produces publication-quality formulas from plain text, numbers and cross-references theorems and equations automatically, and is the format the field's infrastructure runs on: arXiv accepts and compiles TeX source, the American Mathematical Society and most math, physics and computer science journals ship LaTeX document classes, and coauthors expect a .tex file. That standard is old and stable. Donald Knuth created TeX in 1978 so he could typeset The Art of Computer Programming to his own standards, and Leslie Lamport's LaTeX, built on top of TeX in the 1980s, made it practical for everyone else. The rest of this guide covers the concrete benefits with a short example of each, why mathematicians in particular stick with it, the honest drawbacks, and the alternatives worth considering.

How TeX and LaTeX became the standard
- 1977 to 1978: TeX. Knuth was unhappy with the phototypeset proofs of a new edition of The Art of Computer Programming and set out to write his own typesetting program. The first version of TeX appeared in 1978, along with Metafont and the Computer Modern fonts that still give LaTeX documents their familiar look. Knuth later froze TeX's design; bug-fix releases move its version number closer to pi (3.14159265 and onward).
- Early 1980s: AMS-TeX. Michael Spivak wrote AMS-TeX for the American Mathematical Society. Its ideas live on in the
amsmathpackage that almost every LaTeX math document loads today. - 1980s: LaTeX. Lamport wrote LaTeX as a set of macros on top of TeX, so authors describe structure (
\section,\begin{theorem}) and leave the layout to the document class. His book LaTeX: A Document Preparation System became the standard reference. LaTeX2e, released in 1994, is still the current version and is maintained by the LaTeX Project team. - 1991 onward: arXiv. The preprint server started at Los Alamos and took TeX source from the beginning. It still prefers source over PDF and compiles submissions itself.
- Journals and publishers. The AMS (
amsart,amsbook), Elsevier (elsarticle), Springer Nature, IEEE (IEEEtran), ACM (acmart) and the American Physical Society (revtex) all publish LaTeX classes. Submitting in LaTeX often means the journal's production team does less retyping.
The network effect matters as much as the software. Once the preprint server, the journals and your coauthors all use LaTeX, switching costs more than it saves.
The benefits, with an example each
Consistent, high-quality math typesetting
LaTeX knows the conventions mathematicians care about: italic variables but upright function names, correct spacing around operators and relations, limits placed above and below large operators in display style, and properly sized fractions and roots. You type the structure and TeX handles the spacing:
\[
\lim_{n\to\infty} \sum_{k=1}^{n} \frac{1}{k^2} = \frac{\pi^2}{6}
\qquad
\int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{\pi}
\]
\lim and \sum put their limits underneath in a display, \frac sizes itself, and \, adds the thin space before dx that print conventions expect. For a full list of symbols and environments, see the LaTeX equations cheat sheet.
Multi-line derivations line up on the equals sign with align from amsmath:
\begin{align}
(a+b)^2 &= (a+b)(a+b) \notag\\
&= a^2 + 2ab + b^2. \label{eq:square}
\end{align}
Automatic numbering and cross-references
Label a theorem or equation once, refer to it anywhere, and LaTeX keeps the numbers right when you insert, delete or reorder material. In a 60-page paper with dozens of lemmas, this alone saves hours.
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma} % lemmas share the theorem counter
\begin{lemma}\label{lem:bound}
For every $x \in \mathbb{R}^n$, $\lVert x\rVert_\infty \le \lVert x\rVert_2$.
\end{lemma}
\begin{theorem}\label{thm:main}
By Lemma~\ref{lem:bound} and equation~\eqref{eq:square}, ...
\end{theorem}
The amsthm package (loaded automatically by the amsart class) also provides the proof environment with its end-of-proof box.
Bibliographies with BibTeX or biblatex
You keep references in a .bib file, cite them by key, and the bibliography is generated and formatted in whatever style the journal wants:
% refs.bib
@book{lamport1994,
author = {Lamport, Leslie},
title = {{\LaTeX}: A Document Preparation System},
edition = {2},
publisher = {Addison-Wesley},
year = {1994}
}
% in the paper
As described in~\cite{lamport1994}, ...
\bibliographystyle{amsplain}
\bibliography{refs}
BibTeX is the older tool and what many journal classes still expect. biblatex with the biber backend is more flexible for theses and humanities-style citations. Zotero (with the Better BibTeX add-on), JabRef and Google Scholar's "Cite" button all export BibTeX entries. Our guide to LaTeX bibliographies covers both in detail.
Plain-text source that works with Git
A .tex file is plain text. It works with any editor, diffs cleanly in Git, survives decades (papers written in the 1990s generally still compile), and is what arXiv stores. Coauthors can work on separate sections and merge changes line by line:
- Then $f$ is continuous on $[a,b]$.
+ Then $f$ is uniformly continuous on $[a,b]$.
A binary word-processor file cannot show you a change like that.
Macros that keep notation consistent
Define your notation once in the preamble and use it everywhere. If a referee asks you to change notation, you edit one line:
\newcommand{\R}{\mathbb{R}}
\newcommand{\norm}[1]{\lVert #1 \rVert}
\DeclareMathOperator{\tr}{tr} % upright, correctly spaced operator name
Let $A \in \R^{n\times n}$ with $\tr A = 0$ and $\norm{A} \le 1$.
\DeclareMathOperator comes from amsmath and gives your own operators the same treatment as \sin and \log.
LaTeX math is the common language for writing math online
LaTeX math syntax works far beyond LaTeX documents. MathJax and KaTeX render it on websites, Math Stack Exchange and GitHub Markdown accept it, Wikipedia's math markup is based on it, Jupyter notebooks and Obsidian render it, and Microsoft Word's equation editor accepts a LaTeX-like linear format. Learning \frac{a}{b} once pays off across all of these.
Why do mathematicians prefer LaTeX?
The benefits above apply to anyone writing formulas. Research mathematicians have a few extra reasons that make LaTeX close to universal in the field:
- The publication pipeline expects it. arXiv, the AMS journals and most math journals take LaTeX. A paper in Word often gets converted or retyped, which adds errors to exactly the part that matters most, the formulas.
- The structure matches how math papers are written. Definitions, lemmas, theorems, proofs and remarks are numbered, cross-referenced environments. LaTeX treats that structure as first-class.
- Typing math is faster once you know it.
\sum_{k=1}^{n} a_kis quicker to type than to build with menus, and it reads almost like spoken math. Many mathematicians write LaTeX notation in email and chat without thinking about it. - It handles the hard cases. Commutative diagrams (
tikz-cd), large matrices, cases, long chains of inequalities, and custom symbols are all routine with the right package. - It is free and stable. TeX Live and MiKTeX are free, the core has barely changed in decades, and a paper written now will still compile for a long time.
- Talks and teaching use the same source. The
beamerclass turns the same macros and theorem environments into slides, so lecture notes, papers and seminar talks share one set of notation. - Coauthors and students already use it. Collaboration happens in Overleaf or a shared Git repository, and a graduate student's first paper is often written in the advisor's preamble.
None of this means mathematicians enjoy every part of LaTeX. Table formatting and figure placement are common complaints, and error messages are famously unhelpful. But the alternatives do not yet cover the whole pipeline from notes to arXiv to journal.
Honest challenges
- Learning curve. You have to learn markup, compile, and read the output, rather than seeing the result as you type. Most people need a few weeks of regular use before it feels faster than a word processor for math.
- Compile errors. Messages like
Missing $ insertedorUndefined control sequencepoint at a line, but the real cause can be earlier, such as an unclosed brace. Compile often so you know which recent change broke the document. - Collaborating with Word users. Colleagues outside math may not read
.texfiles. Pandoc can convert LaTeX to.docx, but complex math, custom macros and cross-references do not always survive. Overleaf's browser editor lowers the barrier for coauthors who will not install anything. - Accessibility of PDFs. Traditional LaTeX output is untagged PDF, which screen readers handle poorly, especially for math. The LaTeX Project is working on automatic tagged PDF through the
\DocumentMetadatacommand, and recent releases can tag many common documents, but support across all packages and for math is still in progress. arXiv has also offered HTML versions of papers, generated from LaTeX source, since late 2023. If accessibility matters for your readers, provide source or HTML alongside the PDF and check the current status of the tagging project rather than assuming the PDF is accessible. - Layout fights. Floats that move to the wrong page and wide tables are the most common frustrations. Our guides to tables in LaTeX and inserting images in LaTeX cover the usual fixes.
Alternatives and what each is best for
| Tool | How it handles math | Best for |
|---|---|---|
| Typst | Its own markup language with a fast compiler and a web editor; math syntax is similar in spirit to LaTeX but not identical | New documents where you control the format and want instant previews, as long as no journal requires .tex |
| LyX | A visual front end that writes LaTeX for you ("what you see is what you mean") | People who want LaTeX output without writing raw markup |
| Microsoft Word equation editor | Insert > Equation; accepts UnicodeMath or, after you switch the input format to LaTeX, a LaTeX-like linear format, so \frac{a}{b} and \int work as you type |
Reports and documents shared with non-LaTeX colleagues, with a moderate amount of math |
| MathType | A visual equation editor that plugs into Word and Google Docs | Teachers and writers who prefer menus and palettes |
| Markdown with MathJax or KaTeX (Obsidian, Jupyter, GitHub, many blogs) | LaTeX math syntax between $ signs, rendered in the browser |
Notes, web pages and documentation that need equations but not a typeset PDF |
| Google Docs equation tool | A basic built-in equation editor | Quick shared documents with simple formulas |
A practical split for students: write problem sets and theses in LaTeX, take quick notes in a Markdown app with LaTeX math, and use Word's equation editor when a course or employer requires .docx.
Getting started with LaTeX for math
- Open a free Overleaf account, or install TeX Live (Linux or Windows), MacTeX (macOS) or MiKTeX (Windows).
- Start from a short preamble:
\documentclass{amsart}(orarticlewith\usepackage{amsmath,amssymb,amsthm}). - Write one real assignment in it, start to finish, with the equations cheat sheet open.
- Use Detexify (draw a symbol, get the command) and Mathpix Snip (photo of an equation to LaTeX) when you get stuck on notation.
- Add macros only for notation you repeat.
Once your notes or lecture PDFs exist, Scholarly can turn them into study material: upload the PDF to make flashcards, a practice exam, or a narrated video lecture, or use the math solver to check a step-by-step solution. Scholarly does not open or compile your own .tex files; keep those in Overleaf or your editor.



