Latex Spelling and Grammar Check

Huiying Wu 2009, updated Chris Rennie 2012

This document contains information on how to conduct spell and grammar checking of Latex documents. It supposes you have a Latex file called check.tex .

Spell check using aspell

Close the editor for the file, otherwise the file cannot be updated. Type aspell --mode=tex -c filename in the terminal — so in this example type aspell --mode=tex -c check.tex . The programme will show the typos one by one. Suggestions for corrections are given as well. At the end your original Latex file will be updated.

Grammar check (+ spell check)

The procedure described here involves converting your Latex document to HTML, importing this into MS Word, and finally using the grammar checker in Word.

Type latex2html -no_navigation -split 0 check.tex in the terminal. This directs the program to generate output that is (largely) confined to one HTML file, and without added navigation links. A folder named check is created, which will contain various files; the most important one being check.html Open check.html in the above folder using MS Word. Go to Tools --> Spelling and Grammar, to perform checking. Note that any changes made are only in the file check.html . You will need to update your original Latex file separately.

Possible problems

aspell

You can check the availability of aspell by typing:

aspell --version

[Please note the double hyphens, ' -- '.] If it is available, then you should see something like:

@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6)

latex2html

You can check the availability of latex2html by typing:

latex2html --version

If it is available, then you should see the message:

This is LaTeX2HTML Version 2008 (1.71) by Nikos Drakos, Computer Based Learning Unit, University of Leeds.

MS Word

Please note that not all machines have access to MS Word. If you have problem with Word, please visit http://www.physics.usyd.edu.au/restricted/itsupport/faq.html#msoffice FIRST.

Then, if you still cannot solve the problem, contact IT support at http://www.physics.usyd.edu.au/itsupport/requestform.html.