Spell Checking

LaTeX Spell Check in Sublime Text, Atom and Texmaker

Set up LaTeX spell check in Texmaker, Sublime Text and Atom, with notes on Atom's archived status and how to stop LaTeX commands from being flagged.

On this page
  1. Quick answer by editor
  2. Texmaker: built-in spell checking
  3. Sublime Text: add a spell-check package
  4. Atom: archived, so plan an alternative
  5. Keep LaTeX commands and math out of the results
  6. When nothing gets underlined

Quick answer by editor

  • Texmaker includes a spell checker that uses dictionary files, so you choose a language in its settings.
  • Sublime Text doesn’t come with a LaTeX-aware spell checker. You add a package, and its setup depends on that package.
  • Atom is archived. GitHub stopped updating it in December 2022, so treat it as a legacy option and consider one of the alternatives below.

For a command-line check that works in any editor, see how to check spelling in LaTeX.

Texmaker: built-in spell checking

Texmaker’s spell checker uses dictionary files. Menu names and locations vary between versions, so look in the options or preferences for a spell-checking or dictionary setting. Then:

  1. Choose the language for your document, such as English (US) or German.
  2. If the language isn’t listed, install the matching dictionary files, then check the list again.
  3. Open a .tex file, type a deliberate misspelling such as “teh” in a sentence, and confirm it gets underlined.
  4. Check whether the checker also flags command names such as \textbf or \label. If it does, the command-line route in TeX mode usually gives cleaner results.

Sublime Text: add a spell-check package

Sublime Text relies on add-on packages for spell checking, so the exact steps depend on the package you choose.

  1. Install Package Control if you haven’t already.
  2. Install a spell-check package from Package Control. Read its README to see whether it handles .tex files and which dictionaries it uses.
  3. Restart Sublime Text, then test the setup. Type a misspelling in a prose line, and add a label such as \label{sec:teh}. The prose word should be underlined. How the label is handled shows how well the package understands LaTeX.

Turn on automatic spell check

Once the package is installed, look in its settings for an automatic or “as you type” option. Setting names differ between packages, so use the package’s README rather than a setting name from this guide.

If you’d rather not install a package, you can run Aspell or Hunspell from a Sublime Text build system. The results appear as a list in the output panel rather than as underlines in the text.

Atom: archived, so plan an alternative

GitHub archived Atom in December 2022 and stopped updating it. Atom’s spell-check package was bundled with the editor, and it may still work on your machine, but nothing is maintained. It may flag LaTeX commands, so expect some noise.

If you’re moving away from Atom:

  • Pulsar is a community-maintained fork of Atom. It keeps the Atom package ecosystem, so you can check whether a spell-check package you use there handles .tex files.
  • VS Code with the Code Spell Checker extension is a common choice. See the VS Code setup.
  • For a wider comparison of LaTeX editors, see which software is best for LaTeX?

Keep LaTeX commands and math out of the results

Editor checkers see \textbf, \cite{smith2020}, and math as text unless they understand TeX. Two habits help:

  • Use a checker that understands LaTeX, such as Aspell in TeX mode, and compare its output with the editor’s results.
  • Keep a word list for names, acronyms, and package names. Words such as biblatex are flagged in most setups.

For the full picture, see the pillar guide to spell checking LaTeX.

When nothing gets underlined

  • Check the spell-check language first. A wrong language setting can stop the checker from showing anything useful.
  • Confirm the dictionary is installed, then restart the editor.
  • Make sure the file is saved with a .tex extension, so the editor applies the right file type.
  • Test with a deliberate misspelling, as described above.

The complete guide to spell checking

Spell Checking LaTeX Documents in Overleaf, on Mac and Beyond
Read the guide

Keep exploring

Guides from other topics

All topics →