Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Why are basic amsmath commands like \binom and \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.

Screenshot

share|improve this question

migrated from stackoverflow.com Jan 14 '12 at 23:19

This question came from our site for professional and enthusiast programmers.

    
What editor are you using? –  Werner Jan 14 '12 at 20:06
add comment

1 Answer 1

up vote 5 down vote accepted

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 Ignore Spelling. In TeXShop this is activated by a right-click.

This feature is also useful if you have your own custom macros defined and allows you to not flag those as misspelled as well.

Note:

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 \ is ignored).

Here is an example using TeXShop: Note here that both uses of tableofcontents (the macro and the word) is flagged as being misspelled:

enter image description here

After selecting Ignore Spelling, note that both the macro and the word are not flagged as being misspelled:

enter image description here

share|improve this answer
    
Thanks so much, Peter! –  Rose Perrone Jan 15 '12 at 6:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.