# [OS X TeX] List of feature requests on this list

Herbert Schulz herbs at wideopenwest.com
Mon Apr 7 15:31:07 CEST 2014

On Apr 7, 2014, at 8:17 AM, Alain Schremmer <schremmer.alain at gmail.com> wrote:

>
> On Apr 6, 2014, at 6:34 PM, Herbert Schulz wrote:
>
>>
>> On Apr 6, 2014, at 3:49 PM, Herbert Schulz <herbs at wideopenwest.com> wrote:
>>
>>>>
>>>>
>>>> K2—Indenting of the nested environments (Loukanova March 26, 2008 2:49:30 PM EDT)
>>>>
>>>
>>> I'm not sure I understand this. TeXShop will maintain indentation after a return; it doesn't maintain indentation upon soft wrap.
>>>
>>> Also, in more recent versions of TeXShop (3.??) Command Completion will retain indentation and there is even an indented version of the completion file.
>>
>> Howdy,
>>
>> I just looked it up and Command Completion honored indentation since TeXShop 2.38 so it was much earlier than I originally thought.
>
> I believe this is what was wished:
>
> \begin{A}
> 	\begin(B)
> 		\begin(C)
> 		\end(C)
> 	\end{B}
> \end{A}
>
> Best regards
> --schremmer

Howdy,

If environments A, B and C are in the Command Completion list (they can easily be added), e.g., as \bA, \bB and \bC where

\bA

on a line and then pressing ESC (by default --- can be set to TAB) will expand to, e.g.,

\begin{A}
|•|
\end{A}

where |•| is a selected mark (bullet, •). Then simply press TAB and write \bB to remove |•| and insert a TAB followed by \bB. Pressing ESC (ditto as above) now you get

\begin{A}
\begin{B}
|•|
\end{B}
\end{A}

then repeat to get the inner C environment.

If you need to know how to add environments that are NOT already in the Command completion list let me know.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)