Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

5 Answers

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
4  
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
1  
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
show 1 more comment

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
share|improve this answer
3  
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

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

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

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

Your Answer

 
discard

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.