Back to Blog
Cocoaspell6/28/2023 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. The most controversial Sims' addition, and the most useful for some, concerns to spell checking in TeXShop.Michael Beeson sent a crash report for TeXShop when using the "search" method of synchronization, a very old method mostly superseded by Lauren's SyncTeX.Some engine authors may find this useful. This variable holds the current selection location in the source file. When a TeXShop engine job runs, it will find that TeXShop has set a new environmental variable for it called TS_CHAR.The Tags menu now also tags lines beginning with the following commands, for users of Beamer and Powerdot:. ![]() Selecting an item in the resulting pull down menu takes the user to the definition of that particular label. It behaves like theĮxisting Tags tool except that it lists all labels in the source code. There is a new tool in the Source and Combined Windows toolbars called "Labels".Sims' changes led to significant improvements in the underlying TeXShop code, and these improvements are explained at the end of this section for interested readers. ![]() Version 4.18 contains his changes and a minor extra bug fix. Two days after the release and out of the blue, I received four suggested code changes from Neil Sims, the Head of the Department of Mechanical Engineering at The University of Sheffield. Version 4.17 was intended to remain the release version for several months.
0 Comments
Read More
Leave a Reply. |