From: "Stefan M. Moser" <moser@isi.ee.ethz.ch>
Subject: ispell and LaTeX
Date: Wed, 30 Jul 2003 08:15:06 +0200 [thread overview]
Message-ID: <3f27626a$1@pfaff2> (raw)
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]*}"))
))
next reply other threads:[~2003-07-30 6:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-30 6:15 Stefan M. Moser [this message]
2003-07-30 8:25 ` ispell and LaTeX Holger Sparr
2003-07-30 9:22 ` Stefan M. Moser
2003-07-30 10:51 ` Holger Sparr
2003-07-30 12:32 ` Stefan M. Moser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='3f27626a$1@pfaff2' \
--to=moser@isi.ee.ethz.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).