LaTeX Section Font Sizing in TextMate 2

Archived post — originally published 2013-03-13.

See the later LaTeX Font Settings Hits 1.0 announcement.

Like how TextMate 2 resizes the font of your header levels while editing your markdown files? Do you also wish that, similarly, your LaTeX sections had a different font size to help visually distinguish them from the wall of markup surrounding them? Well due to some discussion over at stack exchange, and a little encouraging in #textmate to help expand the scope selectors in the LaTeX.tmbundle, I now present the LaTeX-Section-Font-Sizes.tmbundle.

screenshot of bundle effects
screenshot of bundle effects

To install, just navigate to ~/Library/Application\ Support/Avian/Bundles/ and perform a git clone https://github.com/bcomnes/LaTeX-Section-Font-Sizes.tmbundle.git and you should be good to go. You can also download a .zip or tar.gz if you prefer to avoid git.

Right now it changes the font and size of the section, subsection, and subsubsections in the LaTeX bundle. The bundle will get updates as needed but suggestions are always appreciated. Have have a look around in the bundle editor once it is installed to see how this was achieved. It is really simple and it would be neat to see how others could expand upon it.