Menu
Home Articles About Work With Me
Modern workspace with screens displaying code and data visualizations
Technology Apr 3, 2026 • 18 min read

LaTeX: The Beautiful Monster That Typesets the World's Science (And How to Tame It)

LaTeX typesets over 90% of STEM research papers. It's powerful, free, cross-platform, and absolutely terrifying to look at. Here's what it is, why it exists, how to use it on every device you own, and why AI just demolished the learning curve that kept normal humans away for forty years.

Share:
Lee Foropoulos

Lee Foropoulos

18 min read

Continue where you left off?
Text size:

Contents

I had the equations. My Jupyter notebooks were full of working quantum simulations: Lindblad master equations, qubit fidelity decay curves, error correction benchmarks. My Obsidian vault had hundreds of linked notes from months of AI-assisted research. Everything was organized, computed, and verified. Now I needed to write it up. Properly. The way actual physicists publish actual papers.

So I opened Google Docs and typed the Schrödinger equation.

It rendered like a drunk ransom note. The fractions were the wrong size. The Greek letters looked like clip art. The partial derivatives appeared to be having a medical emergency. I tried Word's built-in equation editor next. It was marginally better, in the same way that a paper cut is marginally better than a broken bone. The subscripts floated at random heights. The integral sign looked like it had been drawn by someone who'd once seen an integral sign described to them over the phone.

Then a physicist I work with looked at my screen, laughed, and said: "You need LaTeX."

I said: "I'm not wearing gloves."

He said: "Not that kind."

I tried putting the Schrödinger equation in Google Docs. It rendered like a drunk ransom note. I tried Word's equation editor. The integral sign looked like it had been described over the phone. Then I found LaTeX. It hurt. But the output was the most beautiful document I'd ever produced.

He was right. LaTeX hurt to learn. The syntax looked like someone had sworn at a keyboard. The error messages were written by a machine that actively hated me. But the output? The output was the most beautiful scientific document I'd ever produced. Every equation was perfect. Every symbol was exactly where it should be. The spacing was immaculate. It looked like the papers I'd been reading my entire career, because it was the same tool that produced them.

90%+
of scientific papers in physics, mathematics, computer science, and engineering are typeset in LaTeX. If you've ever read a research paper with beautiful equations, you were looking at LaTeX output. You just didn't know it.

What Is LaTeX (And Why Does It Look Like Someone Swore at a Keyboard)?

First: it's pronounced "lah-tech" or "lay-tech." The X is a Greek chi (χ). It is emphatically not pronounced like the material your dishwashing gloves are made of. Getting this wrong at an academic conference is the fastest way to identify yourself as an outsider. Consider yourself warned.

LaTeX is a document preparation system. Not a word processor. The distinction matters. In Microsoft Word, you type text and format it visually: click bold, drag margins, fiddle with fonts until it looks right. What you see on screen is what prints. That's called WYSIWYG: What You See Is What You Get.

LaTeX works differently. You write plain text with markup commands that describe the structure of your document, not its appearance. You say \section{Introduction} and LaTeX decides what an introduction heading should look like. You say \frac{a}{b} and LaTeX renders a fraction with proper sizing, spacing, and alignment. You say \int_{0}^{\infty} e^{-x^2} dx and LaTeX produces an integral that would make a calligrapher weep with joy.

This approach is called WYSIWYM: What You See Is What You Mean. You describe what you mean. LaTeX handles how it looks.

Modern workspace with clean desk setup and organized materials
LaTeX source code looks like a programming language arguing with a math textbook. The output looks like the published papers you find in Nature. The gap between those two experiences is the entire LaTeX learning curve.

Here's what a basic LaTeX document looks like:

latex
1\documentclass{article}
2\usepackage{amsmath}
3
4\title{My First LaTeX Document}
5\author{Your Name}
6
7\begin{document}
8\maketitle
9
10The quadratic formula is:
11\[ x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \]
12
13\end{document}

That produces a perfectly formatted PDF with a title, author, date, and a quadratic formula that looks like it was carved by angels. The \frac command makes fractions. The \sqrt command makes square roots. The \pm makes the plus-or-minus symbol. Everything is logical. Everything is consistent. Everything is ugly to type and gorgeous to read.

LaTeX in 30 Seconds

\documentclass{article} — Tell LaTeX what kind of document you're making \usepackage{amsmath} — Import a package (like a library in programming) \begin{document} ... \end{document} — Your content goes between these $E = mc^2$ — Inline math (appears in the text flow) \[ F = ma \] — Display math (centered on its own line) \frac{a}{b} — Fraction: a over b \sqrt{x} — Square root of x \int_{a}^{b} — Integral from a to b \sum_{i=1}^{n} — Summation from i=1 to n \alpha, \beta, \gamma — Greek letters

That's enough to write most equations. The rest you Google or ask AI for.

A Brief, Mildly Traumatic History of Humans Trying to Typeset Math

Before computers, mathematical typesetting was a craft that required specialized workers called compositors who arranged individual metal letters and symbols into pages by hand. A single equation could take an hour. An error meant pulling the entire line apart and reassembling it. Mathematical publishers employed teams of these specialists, and the quality of their work was remarkable. It was also agonizingly slow and prohibitively expensive.

Donald Knuth, 1978. Knuth was writing The Art of Computer Programming, the most influential computer science textbook ever published. When his publisher sent galley proofs of Volume 2 using a new phototypesetting system, the equations looked terrible. The typography had been optimized for regular text, not mathematics. A lesser person would have written an angry letter. Knuth, being Knuth, decided to build his own typesetting system from scratch.

He called it TeX (from the Greek τέχνη, meaning art and craft). He estimated it would take about six months. It took ten years. From 1977 to 1989, Knuth designed and implemented a typesetting engine so precise that it measures distances in units of 1/65,536th of a point. The version numbering converges toward π: the current version is 3.141592653. Knuth has offered a reward of $327.68 (a power of 2 in cents) to anyone who finds a bug. Few have collected.

10 years
Donald Knuth spent building TeX because his publisher's typesetting annoyed him. The version number converges toward π. He offers $327.68 to anyone who finds a bug. This is the kind of person who builds fundamental infrastructure.

Leslie Lamport, 1984. TeX was brilliant but required you to think like a typographer. Writing a simple article meant defining page geometry, font sizes, heading styles, and paragraph spacing from scratch. Lamport, a computer scientist, wrote a set of macros (reusable commands) that handled the structural decisions for you. You said \section{Introduction} and his macros decided what that should look like. He called his macro package LaTeX: Lamport's TeX. It transformed TeX from a typesetting engine into a document preparation system that mere mortals could (eventually, with suffering) use.

The 1990s and 2000s. LaTeX became the mandatory standard for academic publishing in STEM fields. Physics journals, math journals, computer science conferences: they all required LaTeX submissions. Graduate students learned it the way medical students learn anatomy: through painful, prolonged exposure. A rite of passage. "You haven't really suffered until you've debugged a \begin{align} environment at 2 AM" became the unofficial motto of every physics PhD program on earth.

Overleaf, 2012. Two entrepreneurs realized that the only thing worse than using LaTeX was trying to collaborate in LaTeX. Before Overleaf, sharing a LaTeX project meant emailing .tex files back and forth, merging changes by hand, and dealing with version conflicts that made Git merge conflicts look friendly. Overleaf put LaTeX in the browser with real-time collaboration, compile-on-the-fly, and thousands of journal templates. It was Google Docs for LaTeX, and it changed everything. Today, over 15 million people use Overleaf.

Donald Knuth built TeX because a publisher's typesetting annoyed him. That's the same energy as Linus Torvalds building Git because a licensing dispute annoyed him. Apparently, the infrastructure of modern civilization runs on extremely productive irritation.

Why AI Finally Made LaTeX Usable for Normal Humans

Here's the thing that changed everything, and the reason I'm writing this article instead of just accepting that LaTeX is a tool for grad students who've already committed to suffering.

AI writes LaTeX fluently. Every major model: Claude, ChatGPT, GROK, Gemini. They all generate syntactically correct LaTeX from plain English descriptions. You don't need to memorize commands anymore. You don't need to know that a fraction is \frac{}{} or that an integral is \int_{}^{}. You describe what you want and the AI writes it.

"Write the time-dependent Schrödinger equation in LaTeX." Done. Perfect. First try.

"Write the Lindblad master equation for a single qubit with T1 and T2 decoherence." Done. With the correct density matrix notation, the Lindblad operators, and the commutator brackets. In seconds.

"I wrote this LaTeX and it's throwing an error about a missing $." The AI finds the unclosed math environment on line 47, explains why it happened, and fixes it. LaTeX error messages are famously cryptic ("Undefined control sequence" could mean anything from a typo to a missing package to an existential crisis). AI translates them into English.

Clean typography and design elements arranged in a creative layout
The LaTeX learning curve used to be a cliff. AI turned it into a gentle slope. You describe what you want in English. AI writes the code. You compile it. Beautiful PDF. The forty-year barrier just fell.

The workflow I use now for my quantum research:

  1. Derive the physics (on paper or in conversation with AI)
  2. Implement and test in Jupyter (verify the math computationally)
  3. Ask AI to write the LaTeX for the equations and paper structure
  4. Paste into Overleaf or my local LaTeX editor
  5. Compile, review, iterate
  6. Export a publication-ready PDF that looks indistinguishable from a journal article

The AI doesn't just write equations. It generates entire document structures: abstracts, section headings, bibliography entries, figure captions, theorem environments. We covered this in the AI divide article, but it bears repeating: AI didn't replace the need for LaTeX. It replaced the need to memorize LaTeX. And that changes who can use it.

What LaTeX Actually Produces (And Why Scientists Won't Use Anything Else)

Let's talk about what you get for all this effort. Because the output is genuinely stunning, and once you've seen it, Word documents look like crayon drawings.

Mathematical equations. This is the killer feature and the reason LaTeX exists. The spacing between symbols, the sizing of fractions within fractions, the alignment of multi-line derivations: LaTeX handles all of it automatically with typographic precision that no WYSIWYG editor can match. When you read a physics paper and the equations look right in a way you can't quite articulate, that's LaTeX.

Automatic everything. Sections, figures, tables, equations, bibliography entries: they all get numbered automatically. Reference them with \ref{fig:decay-curve} and the number updates if you rearrange things. Add a citation with \cite{knuth1984} and BibTeX builds your bibliography. Move Chapter 3 to Chapter 7 and every cross-reference in the entire document updates. Try doing that in Word without losing your mind.

Publication-ready formatting. IEEE, ACM, APS (American Physical Society), Springer, Elsevier, Nature, Science: they all provide LaTeX templates. Download the template, paste your content, compile. Your paper looks exactly like every other paper in that journal. No manual formatting. No "please use Times New Roman 12pt with 1-inch margins." The template handles everything.

Beyond papers. LaTeX produces books (Knuth's own textbooks are typeset in TeX), theses (most universities provide LaTeX thesis templates), CVs and resumes (the moderncv package produces stunning CVs), presentations (the beamer package creates slides), posters (the baposter package), and even sheet music (the lilypond package). If it involves precise layout and typography, LaTeX does it.

6,000+
packages on CTAN (the Comprehensive TeX Archive Network). From chemistry diagrams to circuit schematics to Feynman diagrams to chess notations. If a field of knowledge exists, someone has written a LaTeX package for it.

Cross-Platform Solutions: The Real Guide Nobody Gives You

This is the section I wish someone had written for me. Every LaTeX tutorial starts with "install TeX Live" and then abandons you. Here's every real option, organized by how you actually work.

The Complete Cross-Platform Guide

Browser (Zero Install, Start in 60 Seconds):

Overleaf — This is the recommendation for everyone, especially beginners. Free tier includes unlimited projects, real-time collaboration, 1,000+ journal templates, integrated compiler, and PDF preview. It's Google Docs for LaTeX. No installation, no configuration, no "which distribution do I need?" questions. Sign up, pick a template, start typing. If you only remember one thing from this section, remember Overleaf.

Papeeria — Lighter alternative with Git integration and Dropbox sync. Good for people who want browser-based editing with version control.

Desktop (Full Power, Full Control):

TeX Live (Linux, Mac, Windows) — The definitive LaTeX distribution. Contains everything: compilers, packages, fonts, tools. The download is large (4+ GB) because it includes the entire CTAN archive. Install once, never think about missing packages again. On Mac, install via MacTeX (a TeX Live distribution packaged for macOS). On Linux: sudo apt install texlive-full and go make coffee.

MiKTeX (Windows, Mac, Linux) — A lighter alternative to TeX Live. Downloads packages on demand instead of installing everything upfront. Smaller initial download, but you'll occasionally pause to install a missing package. Popular on Windows.

Editors (Where You Actually Type):

TeXstudio (all platforms, free) — The most popular dedicated LaTeX IDE. Auto-completion, syntax highlighting, integrated PDF viewer, structure navigator. If you want a tool designed specifically for LaTeX editing, this is it.

VS Code + LaTeX Workshop (all platforms, free) — For developers who already live in VS Code. The LaTeX Workshop extension provides compilation, preview, IntelliSense, linting, and formatting. The workflow feels like programming because it IS programming.

TeXShop (Mac, free) — Classic macOS LaTeX editor. Simple, clean, reliable. Comes with MacTeX.

Texifier (Mac, iOS, paid) — Real-time preview that updates as you type. The closest thing to WYSIWYG in the LaTeX world. Beautiful app, worth the price if you're on Apple devices.

Mobile:

VerbTeX (Android, free) — Edit and compile LaTeX documents on your phone. Integrates with Dropbox and local storage. Is it pleasant to write LaTeX on a phone? No. But it's possible, and sometimes possible is enough.

Texifier (iOS) — Same excellent app as the Mac version. Real-time preview. Syncs with the desktop version.

Overleaf (any mobile browser) — The mobile web app works surprisingly well. Not ideal for heavy writing, but perfect for reviewing and making quick edits.

My Recommendation

Beginners: Start with Overleaf. Zero install, zero configuration, free, collaborative. You'll be writing equations in five minutes.

Power users: Install TeX Live (or MacTeX on Mac) + VS Code with LaTeX Workshop. Local compilation, full control, Git-friendly.

Mobile warriors: Texifier on iOS, VerbTeX on Android, or Overleaf in any browser.

The hybrid approach (what I use): Overleaf for collaborative papers and quick drafts, VS Code + TeX Live locally for serious work, and LaTeX equations in Obsidian and Jupyter for daily research notes.

Gallery exhibition with organized visual elements in a modern space
Every platform, every device, every workflow. LaTeX runs everywhere because TeX has been around since 1978 and the community has had nearly fifty years to port it to everything that has a screen.

The Package Ecosystem (Where LaTeX Becomes Infinite)

LaTeX's real power isn't in the base system. It's in the 6,000+ packages on CTAN, the Comprehensive TeX Archive Network. Think of CTAN as npm for typesetting. Whatever you need, someone has already built a package for it.

Essential Packages

amsmath — The math package. Extended equation environments, alignment tools, multi-line equations. If you're doing math in LaTeX, you're using amsmath. Non-negotiable.

graphicx — Include images and figures. Scale, rotate, crop. Every document with a figure uses this.

hyperref — Clickable links, cross-references, and bookmarks in your PDF. URLs, table of contents links, citation links. Makes your PDF navigable.

tikz — Programmatic diagrams. Circuit diagrams, flowcharts, plots, geometric constructions, neural network architectures. TikZ is Turing-complete (yes, really) and can produce diagrams that make Illustrator jealous. I use it for quantum circuit diagrams.

biblatex — Modern bibliography management. Automatic formatting of references in any citation style (APA, IEEE, Chicago, MLA, Vancouver). Works with the biber backend for Unicode support.

geometry — Page layout: margins, paper size, orientation. One line instead of twenty clicks in Word's page setup dialog.

listings — Syntax-highlighted code blocks. Supports Python, C++, Java, and dozens more.

booktabs — Professional-quality tables. The difference between a table that looks like a spreadsheet and a table that looks like it belongs in a journal.

siunitx — Scientific units, formatted correctly. \SI{299792458}{m/s} produces a perfectly typeset speed of light. Handles unit conversion, number formatting, uncertainty notation.

mhchem — Chemical equations. \ce{H2O} produces H₂O with proper subscripts. Balances equations, handles reaction arrows, isotopes.

beamer — Presentations/slides. Your entire talk is a LaTeX document. Equations, code, diagrams: everything renders perfectly. No more "the equation looks different on the projector" disasters.

pgfplots — Publication-quality plots from data. Replaces the need to export from Matplotlib for many use cases. Axis labels, legends, error bars, 3D surfaces.

TikZ, the diagramming package, is Turing-complete. People have written entire games in it. Someone implemented Conway's Game of Life inside a LaTeX document. This is both impressive and a warning about what happens when engineers have too much free time.

LaTeX and Your Existing Tools

If you've been following this series, you already have Obsidian for organizing research, Jupyter for computing, and GitHub for version control. LaTeX fits into all of them.

Obsidian renders LaTeX math natively. Wrap an equation in $...$ for inline math or $$...$$ for display math. Your research notes can include the same equations that will appear in your paper. The LaTeX Environments plugin adds support for theorem/proof blocks and full LaTeX document compilation inside your vault.

Jupyter renders LaTeX in Markdown cells beautifully. Write $\psi(x,t) = \langle x | \psi(t) \rangle$ in a Markdown cell and it renders the wavefunction notation inline. Your computational notebooks and your typeset equations live in the same document.

VS Code with the LaTeX Workshop extension turns VS Code into a full LaTeX IDE. Compilation, preview, IntelliSense, citation management, and error navigation. If you already use VS Code for coding, you never need to open a separate editor.

Pandoc is the universal converter that ties everything together. A single command converts Markdown to LaTeX, LaTeX to PDF, LaTeX to Word, LaTeX to HTML. Write in Markdown (easy), convert to LaTeX (beautiful), output to whatever format the journal or your boss requires. pandoc input.md -o output.pdf and you're done.

"The research toolkit is complete: Obsidian organizes your thinking. Jupyter verifies your math. LaTeX publishes your results. GitHub tracks every version. Four free tools. One workflow. Zero excuses."

How to Get Started (Right Now, For Free)

Here's the ten-minute version:

  1. Go to Overleaf.com and create a free account. Thirty seconds.
  2. Click "New Project" and choose a template. The "Academic Journal" or "Article" template is perfect for starters. The "CV/Resume" templates are also excellent if you want an immediate practical win.
  3. Type your first equation. Between $...$ for inline: $E = mc^2$. On its own line: \[ F = \frac{Gm_1m_2}{r^2} \]. Compile. Watch Newton's law of gravitation appear in perfect typographic glory.
  4. Ask AI for something harder. Tell Claude or ChatGPT: "Write the time-dependent Schrödinger equation in LaTeX." Paste the result into Overleaf. Compile. Feel the power.
  5. Add a figure. Upload an image, use \includegraphics, add a caption. Your document now has a numbered figure with automatic cross-referencing.
  6. Add a bibliography. Create a .bib file, add a \cite{} command, compile with BibTeX. Your references format themselves. Never manually format a citation again.
  7. For local setup: Install TeX Live (Linux/Mac) or MiKTeX (Windows), then install TeXstudio or add the LaTeX Workshop extension to VS Code. Total time: about 15 minutes plus a large download.
Creative professional workspace with modern design tools
Getting started with LaTeX used to mean a week of suffering. Overleaf cut it to an afternoon. AI cut it to ten minutes. The only barrier left is clicking the link.

Why This Matters (And What Comes Next)

LaTeX is the language science speaks. Every physics paper, every math proof, every CS conference submission, every engineering thesis: LaTeX. Understanding it doesn't just let you produce beautiful documents. It connects you to fifty years of accumulated scientific publishing infrastructure. Every journal template, every citation style, every collaboration tool is built around it.

But here's the bigger picture. Over the last few articles, we've been building a research toolkit:

  • Obsidian organizes your thinking into a linked knowledge graph
  • Jupyter verifies your ideas computationally
  • LaTeX publishes your results with professional typography
  • GitHub tracks every version and enables collaboration

Four tools. All free. All open source (or free-tier). All speaking languages that AI models fluently generate. The barrier between "I have a research idea" and "I published a paper" has never been lower. I still have several on my desk that need to get off it.

This is part of an ongoing series on the tools that power modern research and development. We've covered organizing, computing, publishing, and collaborating. There's more coming. Stay tuned.

Your LaTeX Starter Checklist 0/8
How was this article?

Share

Link copied to clipboard!

You Might Also Like

Lee Foropoulos

Lee Foropoulos

Business Development Lead at Lookatmedia, fractional executive, and founder of gotHABITS.

🔔

Never Miss a Post

Get notified when new articles are published. No email required.

You will see a banner on the site when a new post is published, plus a browser notification if you allow it.

Browser notifications only. No spam, no email.