[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX] Spell in LaTeX
From: |
Torben Knudsen |
Subject: |
[AUCTeX] Spell in LaTeX |
Date: |
Mon, 20 Jul 2009 12:15:06 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
I am trying to exclude more from the spell check in LaTeX using AucTex
In my .emacs I have found the following I have used without to much
understanding.
;; Ispell
;; The below is from http://sandvig.mariegaard.net/
(setq ispell-tex-skip-alists
(list
(append
(car ispell-tex-skip-alists) ;tell ispell to ignore:
'(("\\\\cite" ispell-tex-arg-end)
("\\\\citet" ispell-tex-arg-end) ; TK
("\\\\citep" ispell-tex-arg-end) ; TK
("\\\\nocite" ispell-tex-arg-end)
("\\\\includegraphics" ispell-tex-arg-end)
("\\\\bibliography" ispell-tex-arg-end)
("\\\\ref" ispell-tex-arg-end)
("\\\\notes" ispell-tex-arg-end) ;personal
("\\\\margnotes" ispell-tex-arg-end) ;personal
("\\\\label" ispell-tex-arg-end)))
(cadr ispell-tex-skip-alists)))
then my
;; Ispell
;; The below is from http://sandvig.mariegaard.net/
(setq ispell-tex-skip-alists
(list
(append
(car ispell-tex-skip-alists) ;tell ispell to ignore:
'(("\\\\cite" ispell-tex-arg-end)
("\\\\citet" ispell-tex-arg-end) ; TK
("\\\\citep" ispell-tex-arg-end) ; TK
("\\\\nocite" ispell-tex-arg-end)
("\\\\includegraphics" ispell-tex-arg-end)
("\\\\bibliography" ispell-tex-arg-end)
("\\\\ref" ispell-tex-arg-end)
("\\\\notes" ispell-tex-arg-end) ;personal
("\\\\margnotes" ispell-tex-arg-end) ;personal
("\\\\label" ispell-tex-arg-end)))
(cadr ispell-tex-skip-alists)))
Then my ispell-tex-skip-alists looks like the below. However for
example \cite is still spell checked. What is wrong?
ispell-tex-skip-alists is a variable defined in `textmodes/ispell.el'.
Its value is shown below.
Documentation:
*Lists of regions to be skipped in TeX mode.
First list is used raw.
Second list has key placed inside \begin{}.
Delete or add any regions you want to be automatically selected
for skipping in latex mode.
Value:
((("%\\[" . "%\\]")
("\\\\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)
("\\\\makebox" ispell-tex-arg-end 0)
("\\\\selectlanguage" ispell-tex-arg-end)
("\\\\eqref" ispell-tex-arg-end)
("\\\\epsfig" ispell-tex-arg-end)
("\\\\psfrag" ispell-tex-arg-end 2)
("\\\\psfragc" ispell-tex-arg-end 2)
("\\\\document\\(class\\|style\\)" . "\\\\begin[ \n]*{[ \n]*document[
\n]*}")
("\\\\cite" ispell-tex-arg-end)
("\\\\citet" ispell-tex-arg-end)
("\\\\citep" ispell-tex-arg-end)
("\\\\nocite" ispell-tex-arg-end)
("\\\\includegraphics" ispell-tex-arg-end)
("\\\\bibliography" ispell-tex-arg-end)
("\\\\ref" ispell-tex-arg-end)
("\\\\notes" ispell-tex-arg-end)
("\\\\margnotes" ispell-tex-arg-end)
("\\\\label" ispell-tex-arg-end))
(("\\(figure\\|table\\)\\*?" ispell-tex-arg-end 0)
("list" ispell-tex-arg-end 2)
("program" . "\\\\end[ \n]*{[ \n]*program[ \n]*}")
("verbatim\\*?" . "\\\\end[ \n]*{[ \n]*verbatim\\*?[ \n]*}")
("align\\*?" . "\\\\end[ \n]*{[ \n]*align\\*?[ \n]*}")
("gather\\*?" . "\\\\end[ \n]*{[ \n]*gather\\*?[ \n]*}")))
--
Associate Prof. Ph.D Torben Knudsen Mobile : (+45) 2787 9826
Section of Automation and Control, Direct : 6 8694
Department of Electronic Systems, Email : address@hidden
Aalborg University
Fredrik Bajersvej 7
DK-9220 Aalborg Ø
Denmark
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [AUCTeX] Spell in LaTeX,
Torben Knudsen <=