[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ispell and LaTeX
From: |
Stefan M. Moser |
Subject: |
ispell and LaTeX |
Date: |
Wed, 30 Jul 2003 08:15:06 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.4) Gecko/20030704 |
Hi everybody!
I would like to enhance the ispell of my emacs in such a way that it DOES NOT
check certain (in general not often used) LaTeX-commands. For example, in
\eqref{eq:labelname}
I want ispell to ignore "eq" and "labelname". To this aim I have found a variable
called "ispell-tex-skip-alists" that should do exactly this. However, when I set
the variable in my .emacs-file nothing happens at all. Could anybody give me a
hint what I'm doing wrong?
Thanks!
Stefan
This is the entry in my .emacs-file:
(setq ispell-tex-skip-alists
'((("%\\[" . "%\\]")
;; All the standard LaTeX keywords from L. Lamport's guide:
;; \cite, \hspace, \hspace*, \hyphenation, \include, \includeonly, \input,
;; \label, \nocite, \rule (in ispell - rest included here)
("\\\\addcontentsline" ispell-tex-arg-end 2)
("\\\\add\\(tocontents\\|vspace\\)" ispell-tex-arg-end)
("\\\\\\([aA]lph\\|arabic\\)" ispell-tex-arg-end)
("\\\\author" ispell-tex-arg-end)
("\\\\bibliographystyle" ispell-tex-arg-end)
("\\\\eqref" ispell-tex-arg-end)
("\\\\makebox" ispell-tex-arg-end 0)
;;("\\\\epsfig" ispell-tex-arg-end)
("\\\\document\\(class\\|style\\)" .
"\\\\begin[ \t\n]*{[ \t\n]*document[ \t\n]*}"))
(;; delimited with \begin. In ispell: displaymath, eqnarray, eqnarray*,
;; equation, minipage, picture, tabular, tabular* (ispell)
("\\(figure\\|table\\)\\*?" ispell-tex-arg-end 0)
("list" ispell-tex-arg-end 2)
("IEEEeqnarray\\*?". "\\\\end[ \t\n]*{[ \t\n]*IEEEeqnarray\\*?[ \t\n]*}")
("program" . "\\\\end[ \t\n]*{[ \t\n]*program[ \t\n]*}")
("verbatim\\*?" . "\\\\end[ \t\n]*{[ \t\n]*verbatim\\*?[ \t\n]*}")
("gather\\*?" . "\\\\end[ \t\n]*{[ \t\n]*gather\\*?[ \t\n]*}"))
))
- ispell and LaTeX,
Stefan M. Moser <=