From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan M. Moser" Newsgroups: gmane.emacs.help Subject: ispell and LaTeX Date: Wed, 30 Jul 2003 08:15:06 +0200 Organization: ISI-ETHZ Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3f27626a$1@pfaff2> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1059545741 30767 80.91.224.249 (30 Jul 2003 06:15:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 30 Jul 2003 06:15:41 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 30 08:15:40 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19hkFP-000803-00 for ; Wed, 30 Jul 2003 08:15:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19hkFM-0007VF-1e for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Jul 2003 02:15:36 -0400 User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.4) Gecko/20030704 X-Accept-Language: en, de, zh-TW, zh, zh-CN Original-Newsgroups: gnu.emacs.help X-Enigmail-Version: 0.76.3.0 X-Enigmail-Supports: pgp-inline, pgp-mime X-Original-NNTP-Posting-Host: isibee46.ethz.ch X-Original-Trace: 30 Jul 2003 08:15:06 +0200, isibee46.ethz.ch Original-Lines: 43 Original-NNTP-Posting-Host: pfaff2-rz-fast.ethz.ch Original-X-Trace: pfaff.ethz.ch 1059545709 pfaff2-rz-fast.ethz.ch (30 Jul 2003 08:15:09 +0200) Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!in.100proofnews.com!in.100proofnews.com!irazu.switch.ch!news-zh.switch.ch!switch.ch!pfaff.ethz.ch!pfaff2 Original-Xref: shelby.stanford.edu gnu.emacs.help:115551 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11469 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11469 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]*}")) ))