Spell-checking TeX files
Spell-Checking a TeX File
Most modern spelling checkers know about TeX commands and how to strip them off of a file before spelling them. For example, you can use
ispell -t filename.tex
but if you insist on using spell or have no access to other such programs, you can detex a file and pipe it through spell with the command:
detex filename.tex | spell