April 14, 2026

To write LaTeX documents locally, you need a TeX distribution (the compiler and packages) and an editor. This guide covers installation on Windows, macOS, and Linux, plus the online alternative if you want to skip installation entirely.
If you don't want to install anything, use an online LaTeX editor. These run entirely in your browser. No installation, no configuration, no package management — just sign up and start writing.
Online editors are a popular choice for students and researchers because they handle compilation, package installation, and collaboration automatically. Free tiers are usually sufficient for most individual projects.
A local installation gives you offline access, faster compilation for large projects, and full control over packages and configuration. You need two things:
TeX Live is the standard, comprehensive TeX distribution. It includes everything you need:
install-tl-windows.exeMiKTeX is a Windows-focused distribution that installs packages on demand — it starts smaller and downloads packages as you need them:
MacTeX is the standard distribution for macOS. It's a pre-packaged version of TeX Live with Mac-specific extras:
Alternatively, install via Homebrew: brew install --cask mactex
TeX Live is available through your distribution's package manager:
The texlive-full package installs everything (about 5 GB). For a smaller installation, use texlive-base and install additional packages as needed with tlmgr install.
Any text editor works for LaTeX, but editors with LaTeX support offer syntax highlighting, one-click compilation, and PDF preview:
| Editor | Platform | Notes |
|---|---|---|
| VS Code + LaTeX Workshop | All | Most popular. Excellent extension with auto-compile, PDF preview, and IntelliSense |
| TeXstudio | All | Purpose-built for LaTeX. Built-in PDF viewer, autocomplete, and structure view |
| TeXShop | macOS | Included with MacTeX. Lightweight and reliable |
| TeXworks | All | Included with TeX Live. Minimal and straightforward |
| Vim/Neovim + VimTeX | All | For Vim users. Fast editing with LaTeX-specific motions |
After installing, verify everything works by creating a test file:
Compile it from the command line:
If you get a test.pdf with formatted text and a rendered equation, your installation is working correctly.
LaTeX packages add functionality beyond the base distribution. If you get a "File not found" error for a package:
tlmgr install package-name in your terminalEmpowering students and researchers with AI-powered tools for academic writing.
Go to appContact us© 2026 Underleaf. All rights reserved.