auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] Make flyspell exclude latex macros


From: Thorsten Grothe
Subject: [AUCTeX] Make flyspell exclude latex macros
Date: Mon, 23 Mar 2015 15:37:29 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

Hello List,

I'm using flyspell here to correct my latex documents. This works more or less fine but how can I exclude special latex commands from spelling?

I know that one solution is the variable *flyspell-tex-command-regexp* so I set it like this: (I don't know if the regexp ist right I found it on the Internet and customized it)


(setq flyspell-tex-command-regexp
  "\\(\\((\\(begin\\|end\\)[

\t]*{\\|\\(cite[a-z*]*\\|label\\|ref\\|eqref\\|usepackage\\|documentclass\\|prt\\|id\\|id\\*\\|pgfplotstabletypeset\\)[
  \t]*\\(\\[[^]]*\\]\\)?{[^{}]*\\)\\|\\)")


it works for:

\ID{ATB_12222}, btw \ID*{ATB_123555} --> these are commands from the eqexam package but it does not work for

\pgfplotstabletypeset[
       col sep=space,
       header=true,
       columns={Prod, UmsPG, MAKonkur, Marktwachst},
       font={\sffamily},
       ........         
        
as you can see here on the screenshot:

http://de.zimagez.com/zimage/emacs.php

Does anyone have an suggestion for this?


Regards Th. Grothe





reply via email to

[Prev in Thread] Current Thread [Next in Thread]