<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><p>Hi all,</p><div>I posted following question to stack overflow (<a href="http://stackoverflow.com/questions/12834470/textmate-2-scope-increase-font-size-for-section-in-latex-document">http://stackoverflow.com/questions/12834470/textmate-2-scope-increase-font-size-for-section-in-latex-document</a>), but probably this email list is the more appropriate place. So, I would be happy about answers either in email or in SO:</div><div><br></div><p><strong>Q: When editing a .tex file in Textmate 2: How can you print latex sections in a bigger font size?</strong></p><p>I added following grammar to the Latex bundle:</p><pre><code>{   patterns = (
    {   begin = 'section\{';
        end = '\}';
        name = 'markup.heading.1.latex';
    },
);
}
</code></pre><p>And additionally I added following Setting that is applied to the newly defined <code>markup.heading.1.latex</code> scope:</p><pre><code>{   fontName = 'Baskerville';
fontSize = '2.25em';
}
</code></pre><p>The problem: it only matches sections without a leading \:</p><p><img alt="enter image description here" id="13f7b64a-d227-495f-8781-4f566252b68b" height="64" width="258" apple-width="yes" apple-height="yes" src="cid:8A5932FF-82C2-4104-9C01-4D0EC24409D5"></p><p>... and when I change the scope definition to the following (adding \\ in front of "section"):</p><pre><code>{   patterns = (
    {   begin = '\\section\{';
        end = '\}';
        name = 'markup.heading.1.latex';
    },
);
}
</code></pre><p>.. the scope is not applied.</p><p>Any ideas?</p><div><br></div><div>Thanks,</div><div>Felix</div></body></html>