home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / emacs / 3069 < prev    next >
Encoding:
Text File  |  1992-09-11  |  1.8 KB  |  47 lines

  1. Newsgroups: comp.emacs
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!cs.ucf.edu!news
  3. From: vemula@cs.ucf.edu (Udaya B. Vemulapati)
  4. Subject: spell and TeX --- anyway to avoid deroff?
  5. Message-ID: <1992Sep11.185650.7542@cs.ucf.edu>
  6. Sender: news@cs.ucf.edu (News system)
  7. Organization: University of Central Florida, Orlando
  8. Distribution: na
  9. Date: Fri, 11 Sep 1992 18:56:50 GMT
  10. Lines: 35
  11.  
  12. I use "spell-buffer" function to spell-check my TeX/LaTeX files from within
  13. emacs and I noticed the following annoying problem (because of stupid "spell"
  14. program of Unix).
  15.  
  16. (1) I've a emacs function to remove TeX/LaTeX constructs as a pre-processing
  17.     measure before it goes to spell. But the Unix "spell" program insists on
  18.     passing my buffer through "deroff", apparently to remove troff constructs
  19.     as well as break the input into 1 word per line.
  20. (2) But "deroff" is not sophisticated enough and it blindly looks for any line
  21.     beginning with a period and assumes that it is a troff command and removes
  22.     next two charactres.
  23.  
  24. To give you an example, the follwoing TeX code 
  25. --------------
  26. as long as $A$ is non-singular $A^TA$ is symmetric and positive definite and
  27. $A^Tb\in\hbox{range}(A^TA)$. Furthermore, conjugate gradient algorithms only
  28. ---------------
  29.  
  30. becomes (after detexing)
  31. --------------
  32. as long as  is non-singular  is symmetric and positive definite and
  33. . Furthermore, conjugate gradient algorithms only
  34. --------------
  35.  
  36. When this goes through "deroff", it becomes
  37. -----------------
  38. s long as is non-singular  is symmetric and positive definite and
  39.  urthermore, conjugate gradient algorithms only
  40. ------------------
  41.  
  42. Note the "Furthermore" became "urthermore" because of deroff and obviously
  43. "spell" complains that it is mis-spelled. But "emacs" can NOT find that word.
  44.  
  45. Is there any simple fix? Thanks in advance.
  46.  
  47.