Skip to content Accesskey=4Skip to sub-navigation Accesskey=3View our Accessibility Options MIT Information Systems Home About IS&T Contact IS&T Site Map Search Advanced Search
Getting StartedGetting Services by Topic or Alphabetically Getting Help

On This Page

[Help]

  

Quick Links

Top Level

Related Links

Ask OLC a question

Athena Consulting Homepage

Helpdesk Stock Answers (for Mac/PC questions)


SPELLCHECKING LaTeX files

The formatting commands used in LaTeX can trip up many spelling checkers,
causing them to report the commands as misspelled words.  However, if you use

	ispell -t filename.tex

ispell will go into TeX/LaTeX input mode. In this mode, whenever a backslash
("\") is found, ispell will skip to the next whitespace.  Thus, for example,
given \chapter {This is a Ckapter} \cite{SCH86} will find "Ckapter" but will
not look for SCH.  The -t option does not recognize the LaTeX/TeX comment
character "%", so it will spell check your comments, as well.  This is not an
infallible method, but it does a fairly good job of ignoring most of the LaTeX
formatting.

When you run ispell on a file, it will display each word which does not appear
in the dictionary, and allow you to change it.  If there are "near misses" of
the misspelled word in the dictionary (words which differ by only a single
letter, a missing or extra letter, or a pair of transposed letters), then they
are also displayed.  If you think the word is correct as it stands, you can
type either "Space" to accept it this one time, or "I" to accept it and put it
in your private dictionary.  If one of the near misses is the word you want,
type the corresponding number. Finally, if none of these choices is right, you
can type "R" and you will be prompted for a replacement word.

For a more complete description of how to use ispell, type the following at
the athena% prompt:

	man ispell

MIT Home | Getting Started | Getting Services | Getting Help | About IS&T | Accessibility
Ask a technology question or send a comment about this web page.