![]() ![]() The second command erases the array so the user can start over. The first command below adds one more element to the existing array of user supplied exceptions. There is a hidden preference setting to extend the list of specialized TeX commands. But cocoAspell is more intelligent, and can mark which parameters to spell check and which to skip. This internal list, incidentally, is exactly the list marked for special handling by cocoAspell. But TeXShop has an internal list of certain TeX commands whose parameters contain specialized words, and for these it turns off spell checking for the first two parameters (if they occur in the source). When this item is on, most TeX command parameters are spell checked. The second item in the "Spell Checking" box of TeXShop Preferences turns on a somewhat crude method of handling both kinds of parameters. On the other hand, in the second example the parameter is a user-supplied string which ought to be spell checked. That is true of the first example below, and it is annoying if the spell checker marks "parfill" and "parskip" as misspelled. The entries inside these parameters can also be specialized TeX words. Many TeX commands have optional parameters and mandatory parameters. Some users may write little essays as source comments and prefer to leave spell checking on for them The second is explained in the next paragraph and the third turns off spell checking inside comments. \documentclass, \usepackage, \begin, \alpha and the like. The first spell checking item turns off spell checking for all TeX command words: Leave them off if you use cocoAspell or any spell checking method except "Check Spelling While Typing." In TeXShop Preferences, there is a new box of selections labeled "Spell Checking". The new code doesn't work with the other methods, but it does no harm there. The new spelling code works well with this style of spell checking. The final way to spell check is to use the menu item "Check Spelling While Typing." This item underlines misspelled words as they are typed, and the user can then go back and correct these words. So I added this item to TeXShop, not because I wanted users to use it, but because I wanted users to easily turn it off ! This feature can be turned off in system preferences, but users had a hard time discovering how to do it. This spell check command is thus a glorified search in which only misspelled words are found.Ī second way to spell check is to activate the menu item "Correct Spelling Automatically." This converts your computer into a giant iPhone, constantly standing behind you and changing what you type into what it thinks you ought to have typed. Each additional press causes TeXShop to jump to the next misspelled word and highlight it. When this combination is pressed, the first misspelled word is highlighted. ![]() The first of these items is titled "Check Spelling", and has a keyboard shortcut "command semicolon". The methods are activated for the current file in TeXShop's Edit menu, and default values can be set in TeXShop Preferences. Thanks to Sims, TeXShop can now handle this problem - for some users - while using the standard Apple spell checker and standard Apple dictionaries.Īpple provides three ways to spell check text in Cocoa, and TeXShop inherits these three methods. One common solution is to install a LaTeX-aware spell checker like cocoAspell. ![]() When spell checking is on, many LaTeX commands are marked as misspelled.
0 Comments
Leave a Reply. |