Latex Spelling and Grammar Check
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 typeaspell --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 beingcheck.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 --versionIf 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.
You can let TeX (rather luaTeX) do the spell checking for you! For example, in ConTeXt MkIV, you can use
\loadspellchecklist[en][wordlist.txt]
\setupspellchecking[state=start]
where en
is the current language (you can set different word lists for different languages), and wordlist.txt
is a sorted list of correct words. For a complete example, see the ConTeXt wikihttps://plus.google.com/u/0/100253604603876380275/posts
I feel that spell checking has been a improved function in modern technology.
ReplyDeletecopy editing services