home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.emacs
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!cs.ucf.edu!news
- From: vemula@cs.ucf.edu (Udaya B. Vemulapati)
- Subject: spell and TeX --- anyway to avoid deroff?
- Message-ID: <1992Sep11.185650.7542@cs.ucf.edu>
- Sender: news@cs.ucf.edu (News system)
- Organization: University of Central Florida, Orlando
- Distribution: na
- Date: Fri, 11 Sep 1992 18:56:50 GMT
- Lines: 35
-
- I use "spell-buffer" function to spell-check my TeX/LaTeX files from within
- emacs and I noticed the following annoying problem (because of stupid "spell"
- program of Unix).
-
- (1) I've a emacs function to remove TeX/LaTeX constructs as a pre-processing
- measure before it goes to spell. But the Unix "spell" program insists on
- passing my buffer through "deroff", apparently to remove troff constructs
- as well as break the input into 1 word per line.
- (2) But "deroff" is not sophisticated enough and it blindly looks for any line
- beginning with a period and assumes that it is a troff command and removes
- next two charactres.
-
- To give you an example, the follwoing TeX code
- --------------
- as long as $A$ is non-singular $A^TA$ is symmetric and positive definite and
- $A^Tb\in\hbox{range}(A^TA)$. Furthermore, conjugate gradient algorithms only
- ---------------
-
- becomes (after detexing)
- --------------
- as long as is non-singular is symmetric and positive definite and
- . Furthermore, conjugate gradient algorithms only
- --------------
-
- When this goes through "deroff", it becomes
- -----------------
- s long as is non-singular is symmetric and positive definite and
- urthermore, conjugate gradient algorithms only
- ------------------
-
- Note the "Furthermore" became "urthermore" because of deroff and obviously
- "spell" complains that it is mis-spelled. But "emacs" can NOT find that word.
-
- Is there any simple fix? Thanks in advance.
-
-