# Spell checking LaTeX documents

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

-
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

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).

-
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.

-
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

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!

-

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

-

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.

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`.

-

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.)

-
``````detex doc.tex | spell
``````
-

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.

-
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