Why are basic
amsmath commands like
\cdot treated as if they are misspelled in the TeX editor? I have included the
amsmath package, and the code works fine. I'm curious as to why those red squigglies exist.
migrated from stackoverflow.com Jan 14 '12 at 23:19
This question came from our site for professional and enthusiast programmers.
Spell checking is based on a list of defined terms (depending on the language) and does not include any special commands that may be defined by the various packages (as there are numerous packages, and new ones appear quite often). In most editors, you should be able to add to a your local dictionary by highlighting the word and selecting
This feature is also useful if you have your own custom macros defined and allows you to not flag those as misspelled as well.
But keep in mind that once you do this, you will need to be careful to not use that word in your usual usage as it will not be flagged as misspelled. Most spell checkers will not differentiate between macros and words (i.e., the
Here is an example using