Oops, a couple of negations in the wrong place. Also the example for TM_LATEX_FIRSTLINE was wrong, it should have been: equation=>\\label{eqn:$1},theorem=>\\label{thm:$1} Changed: U trunk/Bundles/Latex.tmbundle/Commands/Insert LaTeX Command Based on Current Word.plist