Skip to main content
v2026.11,858 entries · CC-BY 4.0
LAC HealthMedical Supply Distributor100,000+ medical supplies. 48-hour critical dispatch.Ships from 8 regional U.S. hubs. Net-30 terms for verified institutional accounts.Shop lac.us CodeCASRAIlac.us

LaTeX Editor Mac OS X: Setup and Guide

Configure a LaTeX editor on Mac OS X using TeXShop and MacTeX. Follow step-by-step setup, compile with Cmd+T, troubleshoot paths, and compare free editors.

Written and maintained by CASRAI Editorial Board

Last updated

Choosing and configuring a LaTeX editor on Mac OS X (macOS) gives researchers a stable, native environment for drafting academic papers, technical reports, and grant proposals. Using a dedicated desktop editor provides offline compilation, native PDF preview rendering, and precise typesetting control without relying on remote cloud servers. For researchers evaluating cloud platforms alongside local setups, our guide to web LaTeX editors for research explores browser-based collaborative options.

What it is used for in research

Researchers across mathematics, computer science, physics, economics, and quantitative social sciences rely on LaTeX for document preparation. On macOS, dedicated LaTeX editors provide three core capabilities essential to academic workflows:

  • Native Mathematical Typesetting: Seamless integration with TeX Live typesetting engines enables precise formatting of complex formulas, matrices, and custom notation.
  • Document Structuring: Automated management of section numbering, cross-references, equation numbering, and figure placement across multi-file monograph and dissertation projects.
  • Integrated PDF Previewing: Modern macOS editors leverage Apple’s Cocoa PDFKit framework to deliver low-latency document previewing and bidirectional synchronization between source code and compiled pages.

Install or access (official source only)

On macOS, the standard distribution mechanism is MacTeX, maintained by the TeX Users Group (TUG). MacTeX packages the complete TeX Live distribution alongside native macOS graphical applications.

Method 1: Full MacTeX Distribution (Recommended)

The full MacTeX distribution includes TeX Live, Ghostscript, and GUI utilities including TeXShop, BibDesk, LaTeXiT, and TeX Live Utility.

  1. Download the official installer package (MacTeX.pkg) directly from the TeX Users Group repository at https://tug.org/mactex/.
  2. Double-click MacTeX.pkg and complete the standard macOS installation wizard.
  3. The installer deploys GUI applications into /Applications/TeX/ and configures the active binary symlink at /Library/TeX/texbin.

Alternatively, users managing software via Homebrew can install the cask package from the macOS Terminal:

brew install --cask mactex

Method 2: BasicTeX (Lightweight Alternative)

For systems with limited storage capacity, TUG provides BasicTeX, a minimal distribution containing the standard scheme-small package set.

  1. Download BasicTeX.pkg from TUG or install via Homebrew:
    brew install --cask basictex
  2. Install additional CTAN packages as needed using the TeX Live package manager:
    sudo tlmgr update --self
    sudo tlmgr install <package-name>

Standalone TeXShop Installation

If TeX Live is already installed or requires updating independently of MacTeX, standalone versions of TeXShop can be downloaded directly from the official project page hosted by Richard Koch at the University of Oregon (https://pages.uoregon.edu/koch/texshop/). TeXShop is distributed as a Universal binary running natively on both Apple Silicon (ARM64) and Intel architectures.

Step-by-step task

This procedure walks through creating, compiling, and inspecting a research document using TeXShop, the native macOS editor bundled with MacTeX.

  1. Launch TeXShop: Open /Applications/TeX/TeXShop.app from Finder or Spotlight. On initial launch, TeXShop automatically creates its configuration support directory in ~/Library/TeXShop/.
  2. Create a New File: Navigate to the menu bar and select File > New (or press Cmd + N) to open a blank editor window.
  3. Enter Document Source: Input a standard research article structure into the editor window:
    documentclass[11pt,a4paper]{article}
    usepackage{amsmath,amssymb}
    title{Sample Research Document}
    author{Principal Investigator}
    date{today}
    begin{document}
    maketitle
    section{Introduction}
    This manuscript demonstrates native LaTeX typesetting on macOS.
    end{document}
  4. Save the Document: Choose File > Save As… (or press Cmd + S). Assign a clear filename with the .tex extension (such as manuscript.tex) and select a dedicated project folder.
  5. Select Compilation Engine: Confirm the typesetting engine from the toolbar dropdown selector. By default, TeXShop selects LaTeX (executing pdflatex). For documents requiring native system fonts via the fontspec package, select XeLaTeX or LuaLaTeX.
  6. Typeset the Document: Select Typeset > Typeset from the top menu or press the keyboard shortcut Cmd + T. TeXShop runs the selected engine and opens the resulting PDF in a companion preview window.
  7. Navigate with SyncTeX: To jump from source code to the corresponding line in the compiled PDF, hold the Cmd key and click any word in the source editor. To jump from the PDF preview back to the exact code location, hold Cmd and click the relevant text inside the PDF window.

For more detailed technical guidelines on command-line automation and engine options, consult our comprehensive guide on how to compile LaTeX.

Output and how to read it

Compiling in TeXShop generates two visual displays: the rendered PDF viewer and the compilation console window.

The PDF Viewer Window

The PDF window renders the compiled document using macOS PDFKit. Changes appear automatically each time Cmd + T is executed, maintaining the current zoom level and page position.

The Console Window

The console window records the output transcript generated by the TeX engine during typesetting. Reading the terminal output allows researchers to verify proper compilation:

  • Successful Compilation: The final lines report page numbers and file sizes:
    Output written on manuscript.pdf (1 page, 24512 bytes).
    Transcript written on manuscript.log.
  • LaTeX Warnings: Warning messages notify authors of unresolved cross-references or formatting irregularities without halting compilation:
    LaTeX Warning: Reference `sec:methods' on page 1 undefined on input line 24.

    An undefined reference warning indicates that an additional compilation pass is required to resolve internal label keys.

  • LaTeX Errors: Errors halt compilation and display an exclamation point (!) followed by the error type and source line reference:
    ! Undefined control sequence.
    l.15 badmacro{data}

    The notation l.15 identifies that the parsing failure occurred on line 15 of the source document. Pressing q and Enter in interactive console mode aborts the run to permit source correction.

When compiling bibliographies, TeXShop supports external runs via Typeset > BibTeX. For managing reference libraries across academic writing teams, explore our guide to Zotero vs. JabRef for LaTeX. To ensure documents satisfy publisher page budgets, refer to our guide on word count in LaTeX.

Troubleshooting

The following table addresses operational issues encountered when setting up LaTeX editors on macOS:

Symptom Underlying Cause Resolution Procedure
Error: Can't find ~/Library/TeX/texbin or pdflatex TeXShop preferences reference an obsolete binary directory (such as legacy /usr/texbin). Open TeXShop > Settings… (or Preferences), select the Engine tab, and verify that Path settings: (pdf)TeX is set to /Library/TeX/texbin.
Terminal reports zsh: command not found: pdflatex The macOS default zsh shell configuration does not include the MacTeX binary directory in its system $PATH. Open ~/.zshrc in an editor and append export PATH="/Library/TeX/texbin:$PATH". Save the file and reload the shell with source ~/.zshrc.
Gatekeeper warning: TeXShop cannot be opened because the developer cannot be verified macOS Gatekeeper quarantines applications downloaded outside the Mac App Store. Open System Settings > Privacy & Security and click Open Anyway, or remove the quarantine attribute via Terminal using xattr -d com.apple.quarantine /Applications/TeX/TeXShop.app.
Error: LaTeX Error: File 'package.sty' not found BasicTeX was installed rather than full MacTeX, leaving optional CTAN packages uninstalled. Install the required package through Terminal using the TeX Live package manager: sudo tlmgr update --self && sudo tlmgr install <package-name>.

Free alternatives (table)

While TeXShop serves as the default native editor included with MacTeX, researchers can select from several free, open-source editors on macOS:

Editor macOS UI Framework Engine Requirement Core Strengths in Research Official Distribution
TeXShop Native Cocoa / PDFKit MacTeX or BasicTeX Lightweight footprint, zero configuration, bundled natively with MacTeX, seamless SyncTeX integration. Free (GPLv2) via TUG and University of Oregon project site.
TeXstudio Qt Framework MacTeX or BasicTeX Full-featured IDE, interactive syntax and spell checking, structure outline tree, multi-cursor editing. Free (GPLv2) via official installer or brew install --cask texstudio.
VS Code + LaTeX Workshop Electron / WebKit MacTeX or BasicTeX Integrated Git version control, extensive snippet library, multi-language coding support, customizable keybindings. Free (MIT / Source-available binary) via Microsoft and extension marketplace.
LyX Qt Framework MacTeX or BasicTeX WYSIWYM graphical document processing, mathematical formula visual editor, structured outline navigation without raw code. Free (GPLv2) via official project portal or brew install --cask lyx.

FAQ

What is the distinction between MacTeX and TeXShop?

MacTeX is the complete TeX distribution for macOS containing the underlying typesetting engines (such as pdflatex, xelatex, and lualatex), macros, system fonts, and documentation. TeXShop is a graphical front-end application (editor and PDF previewer) that allows users to write source code and trigger those engines. Installing MacTeX automatically places TeXShop in /Applications/TeX/.

Does TeXShop support Apple Silicon Macs natively?

Yes. Current releases of TeXShop (version 5.x and version 4.79) are compiled as Universal binaries containing native code for both Apple Silicon (ARM64) and Intel (x86_64) architectures. They execute without requiring Rosetta 2 translation.

Where are LaTeX binaries located on macOS?

MacTeX installs versioned engine binaries under /usr/local/texlive/<year>/bin/universal-darwin/ and establishes a system symbolic link at /Library/TeX/texbin. Applications and shell environments point to /Library/TeX/texbin, allowing the active TeX Live version to be updated without altering editor path configurations.

Can BasicTeX be used with TeXShop to conserve disk space?

Yes. BasicTeX installs the core TeX Live infrastructure and provisions the standard /Library/TeX/texbin path in under 150 MB. TeXShop functions seamlessly with BasicTeX. When a document requires a missing package, it can be installed on demand via the command line using sudo tlmgr install <package-name>.

Sources (official docs)

  • TeXShop Project Documentation, Richard Koch, Department of Mathematics, University of Oregon. Official releases, installation notes, and Cocoa architecture: https://pages.uoregon.edu/koch/texshop/ (read 2026-11-08).
  • Comprehensive TeX Archive Network (CTAN), MacTeX Package Documentation. TeX Users Group (TUG) MacTeX TeXnical Working Group: https://ctan.org/pkg/mactex (read 2026-11-08).
  • TeXstudio Project Documentation, Cross-platform LaTeX IDE documentation and macOS configuration: https://www.texstudio.org/ (read 2026-11-08).
  • TeX Live Distribution Documentation, TeX Users Group (TUG): https://tug.org/texlive/ (read 2026-11-08).

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · free to try

Ask about LaTeX Editor Mac OS X: Setup and Guide

Ask your first 2 questions free below. Subscribers get 150 a day for $29 a month.

An AI assistant specialized in research administration. It cites the sources behind every answer, labels web answers and says when it can't answer.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays free to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →