[OS X TeX] how to adapt "Close Current Environment"? (TeXShop)

Yusuke Terada taylorkgb at gmail.com
Fri Jul 1 06:47:51 EDT 2011

Hello Steffen,

I wrote the code of "Close Current Environment".
I've extended this feature at your request.

Here is the extended TeXShop binary, which is based on the latest TeXShop 2.43.

And the source: http://dl.dropbox.com/u/5807100/texshopsource2.43Terada.zip

Please test this. If it works as you desire, I'm going to submit this extended source to Mr.Koch.


Yusuke Terada

On 2011/07/01, at 17:41, Steffen Wolfrum wrote:

> Hi all,
> in the latest TeXShop there is a new feature called "Close Current Environment":
> By hitting the respective keystroke TeXShop looks back in the source from the cursor for the latest 
> \begin{aaa} 
> and writes an
> \end{aaa} 
> at the current position!
> For ConTeXters this could be even more useful, as ConTeXt allows consequent structuring:
> \starttext
> \startchapter[title="Test"]
>  \startparagraph
>   Test text.
>    \startfootnote[1]
>     Note text.
>    \stopfootnote
>   \stopparagraph
>  \stopchapter
> \stoptext
> I hope it shouldn't be too difficult to extend "Close Current Environment" from begin/end pairs only to start/stop environments too.
> Does anybody know how to do this?
> Or does anybody know who actually wrote this feature (so I could ask him/her directly)?
> Thank you very much,
> Steffen----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex

More information about the MacOSX-TeX mailing list