Open aspell-helper opened 19 years ago
Georg Stillfried georgstillfried\@sf commented on 2010-07-07 15:14:14 UTC
Yes, I agree! This would increase performance on TeX documents greatly.
A patch for this feature was already written:
http://lists.gnu.org/archive/html/aspell-devel/2011-02/msg00000.html
Might be a good start.
This feature would be very useful for me as well.
For the moment, I have a workaround, which was partly inspired by this blog post. In my TeX preamble I added \newcommand{\aspellNoCheckInput}[1]{\input{#1}}
. Then, in my .aspell.conf file I added add-tex-command aspellNoCheckInput op
. This allows me to put the code I don't want spell checked into a separate TeX file, which is inputted into the document with \aspellNoCheckInput
. This workaround could get very annoying if you have many environments you want to ignore, but so far it has been acceptable to me.
Harald Harders harders\@sf created a feature request on 2005-07-03 14:18:28 UTC (Orig. from https://sourceforge.net/p/aspell/feature-requests/42)
Aspell supports to ignore the arguments of some commands in TeX mode (add-tex-command). But it does not support to ignore the contents of environments.
For example, the math-environments (e.g., equation, eqnarray, align) could be ignored since they normally do not contain much text. Is there a possibility to achive that? I don't see any (even not in the source code).
The perfect behaviour would be to ignore everything inside the math environments except the things that are in the argument of the \text or the \mbox command.