[OS X TeX] TeXShop balance begin/end
Herbert Schulz
herbs at wideopenwest.com
Wed Sep 15 13:28:54 EDT 2010
On Sep 15, 2010, at 9:34 AM, Nestor Aguilera wrote:
> Hi,
>
> Does the TeXShop editor have a command for balancing begin/end pairs (in the source file)?
>
> Thanks,
>
> Nestor
Howdy,
Do you mean that it inserts matched pairs when you press the opening delimiter; e.g., you press { and you get {} with any selection and the insertion point between them? If so turn TeXshop->Preferences->Source->Edit->Auto Complete.
If that doesn't work it may be that that isn't set as a keybinding in the default autocompletion.plist file found in ~/Library/TeXShop/Keyboard/ (~ is your HOME directory). Open that up using UTF-8 encoding and add the lines
<key>{</key>
<string>{#SEL##INS#}</string>
to bind { and similar lines for other delimiter pairs.
If you mean matching the delimiters as they are created, e.g., when you press the closing delimiter it flashes back to the matching starting delimiter, make sure TeXshop->Preferences->Source->Parens Matching is checked.
If you double click a delimiter all the text between that delimiter and its match is selected.
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
More information about the MacOSX-TeX
mailing list