# [OS X TeX] Beginner's question : close environment in TeXShop ?

Herbert Schulz herbs at wideopenwest.com
Fri Mar 4 22:20:33 CET 2011

On Mar 4, 2011, at 3:10 PM, Eric van der Oord wrote:

> Is there in TeXShop -- as in iTexMac -- a simple command to insert a "\end{foo}"  to close a "\begin{foo}" inserted some lines before ?
>
> Eric

Howdy,

Just place the cursor just after the \begin{foo} and press Esc and the \end{foo} will appear on the next line with the cursor in between them.

There is actually much more you can do with Command Completion. E.g., place

\bite

at the beginning of a line and press Esc (this trigger'' key can be configured to be Tab rather than Esc in TeXShop->Preferences->Source->Command Completion Triggered By:) to get

\begin{itemize}
\item
•
\end{itemize}•

with the first bullet (called a Mark) selected so when you start to type it is automatically removed. There are commands to jump to the next Mark and select it in the Source->Completion->Marks menu (Ctl-Cmd-F or Opt-Esc [actually Opt-Trigger] will run the Next Mark menu item). Attached is a Quick Start Guide to Command Completion in TeXShop'' to get you started.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Quick Start Guide for Command Completion with	TeXShop.pdf.zip
Type: application/zip
Size: 49447 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20110304/e1bc2c51/attachment.zip>
-------------- next part --------------

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)