Take the 2-minute tour ×
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.

I'm looking for a way to integrate something like After the Deadline or a similarly sophisticated spell checking tool into writing LaTeX documents. I don't mind it hitting the network each time. I already use flyspell-mode in AucTeX.

Edit

After the deadline is a webapp service which checks text for spell checking, grammar and style. In some ways it is similar to Microsfot Word spell-checking, more specifically green underline suggestions. After the deadline is used on wordpress.com and there are firefox/chromium/openoffice plugins for it. I was wondering if anyone managed to get this or any other similar spell checker to work with LaTeX documents to check grammar and style. I'm asking for something which will parse the whole sentences, and not just words.

share|improve this question
2  
possible duplicate of Spell checking LaTeX documents –  Loop Space Jul 27 '10 at 15:17
    
The question needs more detail. Would those familiar with the program you mention understand what you are asking? I'm not, and I don't. –  vanden Jul 27 '10 at 15:18
    
@vanden: provided more detail @Andrew Stacey: this question is about more advanced MS Word like grammar and style checker. –  Dima Jul 27 '10 at 15:48
    
I too suggest merging this question into the other one on spell-checking (possibly broadening its scope). It's basically "how to spell-check using an external program/library". –  ShreevatsaR Jul 27 '10 at 16:38
    
You can simply import your latex document into Word, and spell check it there. There's an issue: telling Word that macros don't need checking, which is in principle solveable (you can tell Word that certain parts of the Word document aren't in a human language), but in practice requires programming. –  Charles Stewart Jul 28 '10 at 9:45

2 Answers 2

up vote 10 down vote accepted

You can use the detex tool to strip LaTeX commands. If you do detex file.tex, it will output to stdout. Then, you can use the diction tool to analyse your text, and suggest improvements. Putting it all together:

detex file.tex | diction -bs

This will strip the LaTeX, and pipe it into diction with suggestions and "beginner mistakes" enabled.

For Debian/Ubuntu:

sudo apt-get install diction texlive-extra-utils

This will install detex and diction, as well as several other useful tools.

Since you mentioned that you're using Emacs, there is also diction.el which provides diction integration with Emacs. You can do M-x diction-buffer, and it will take care of detexing/dehtmling and show the diction results in a separate buffer. You can even hit enter on the individual results to be taken to approximately where the phrase is.

(If you do use diction.el, my version of detex didn't have the -C flag. I'm not sure of what it was meant to do, but if you search for 'detex -C' in the file, you can add other command line options if you want. Also, I recommend replacing 'diction -L' with 'diction -bsL')

share|improve this answer
    
Just a heads up. The diction.el link is down. –  Bruce Connor Feb 24 at 12:06
aspell -t -c <filename>

where < filename > is the name of the tex file you would like to spell check will also do the job if aspell (http://aspell.net/) is installed on your system. Here -t filters the tex keywords and the symbols and -c asks aspell to spellcheck.

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.