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:
- Choose the language for your document, such as English (US) or German.
- If the language isn’t listed, install the matching dictionary files, then check the list again.
- Open a
.texfile, type a deliberate misspelling such as “teh” in a sentence, and confirm it gets underlined. - Check whether the checker also flags command names such as
\textbfor\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.
- Install Package Control if you haven’t already.
- Install a spell-check package from Package Control. Read its README to see whether it handles
.texfiles and which dictionaries it uses. - 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
.texfiles. - 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
biblatexare 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
.texextension, so the editor applies the right file type. - Test with a deliberate misspelling, as described above.