TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What's the best strategy for spell checking LaTeX documents?

share|improve this question
This question is noticeably lacking in Windows-specific answers. (For those of us using Windows-native editors rather than emacs, vi.) I suspect if I ask a Windows-specific question, it will be merged here... ? – Mohan Sep 29 '12 at 23:45

10 Answers 10

It sort of depends on the system you're working on.

I'm using GNU/Linux and here aspell does a good job. For instance, to check test.tex in Danish, I would do like this from the terminal:

aspell -c test.tex -d da

On Ubuntu/Debian, this can be installed using:

sudo aptitude install aspell

Aspell is also available as a Windows executable. It can but run from the command line or from any good text-editor (i.e. one that supports macros to run external programs).

share|improve this answer
You can also use the --mode=tex or -t options to put aspell into tex mode, which ignores the spelling of standard tex commands. If you have defined additional tex commands these can be added to or removed from the ignore list using --add-tex-command=<list>, --rem-tex-command=<list>. – ihuston Jul 26 '10 at 20:57
Hunspell also has a TeX/LaTeX mode, -t, if one is using a language aspell does not support. – Khaled Hosny Aug 29 '10 at 8:30
I use this to do a spellcheck in Swedish "aspell --lang=sv --mode=tex -c my_file.tex" – Johan Aug 29 '10 at 11:48

Spell-checking can commonly be handled by your text editor. I'm not sure what the windows LaTeX editors have, but it's common to use vi or emacs in linux, and the editor's spell checking is pretty sufficient. Also, because these editors are syntax-aware, your spell-checking can be as well.

share|improve this answer
I personally use M-x flyspell-mode with AucTeX in Emacs which checks spelling as you type. – Quadrescence Jul 26 '10 at 19:37
As another example, if you use TextMate on Mac OS X to edit your Latex documents, you can use its spell-checking features. Seems to work fairly well. – Jukka Suomela Jul 26 '10 at 20:25
Personally use the new set :spell in Vim 7, and Automatic Spell Checking available in all system languages in Kile. – EricR Aug 4 '10 at 15:52
I'd point out that every dedicated TeX editor I know of has a spell checker: this applies to all platforms. It's such an obvious requirement that editors would not really succeed without it. – Joseph Wright Aug 29 '10 at 8:22
I'be been deeply disappointed in emacs spell check, and I consider it totally inadequate for LateX – Norman Ramsey May 30 '11 at 22:07

There's a reasonable on-line spell-checker at Micro Spell.

share|improve this answer

I use a mac and I have cocoaspell, which works for the whole computer. As I use Aquamacs, I then enable flyspell (spell check on the fly), and it is all done!

share|improve this answer
detex doc.tex | spell
share|improve this answer

You might want to have a look at the spelling package. Though not yet matured, it already works reasonably well. The spelling package requires the LuaTeX engine. Main features of the package are:

  • Text is extracted during typesetting and written to a file that can be checked by your favourite spell-checker application.
  • Spelling errors can be highlighted in PDF output.

(The maintainer of the spelling package.)

share|improve this answer

It depends not only on the packages suggested but also on the language that you are using and on the front-end you edit your text. If you are a Windows user, I recommend WinEdt which is a paid front-end for LaTeX. It has dictionaries for many languages and underlines in red the words which are written incorrectly. A right click on an underlined word shows alternatives for it. If you write in different languages, you can also combine different dictionaries.

Example of Winedt spell checking

If you problem is hyphenation, however, remember to configure MiKTeX and your document for the language considered. There may be problems still, but you can correct them manually with \hyphenation.

share|improve this answer

I have good experiences with the spell checker of TeXStudio, but I guess there are many other editors with good LaTeX compatible spell checkers. You find a good list in this question.

A second option that some of my colleagues practice is to copy'n'paste the pdf output to Word. This may sound cumbersome and probably is, but the time you will/should take to proof read your document will exceed the time amount for the copy and paste by order of magnitudes.

share|improve this answer
It is time consuming way to paste in word, but it worth because the office 2013 can check some grammar errors not only the spells. – selwyndd21 Sep 26 '13 at 2:13

Old question but I figured I'd throw in my two cents. An approach that I use, following a careful read-through to make sure that I catch as much as I can, is to first convert the latex document to RTF (using the latex2rtf package), and then open it up in Word. The figures tend to be ignored, however the wording and grammar at least can be handled by Word's excellent spelling and grammar checker.

share|improve this answer

As it hasn't been mentioned, note also Texmaker:


Cross-platform (on Linux I use 4.1.1 as it is the last static build available for download, otherwise my OS is too old), apparently it has it's own spell-check dictionaries (program directory contains e.g. en_GB.aff, en_GB.dic - not sure if these use aspell or standalone engine); comments are skipped (I like), commands are skipped (I like), filecontents with bibliography entries are skipped (surprised at this, like), math is skipped (like) -- though some packages/arguments are still checked/underlined, and \cite arguments too (see Make spellchecker ignore contents of certain commands in TexMaker). In any case, this looks quite good to me...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.