[SVN] LaTeX syntax coloring

Charilaos Skiadas cskiadas at uchicago.edu
Mon May 9 14:32:30 UTC 2005


On May 9, 2005, at 8:37 AM, Brad Miller wrote:

> The problem is that \part is overloaded
>
> I assume that you are using the exam package in your example below?

Yeah, I am. It seems to happen with other sectioning commands as well, 
though that is less of a problem.
> since \part is also a sectioning command.  I'll look at trying to 
> tighten up the matching rules today.

While we are on the subject, the following also give problems:

\section{$\mathcal{D}$-modules}

with the first closing brace being colored as closing the section 
command.
Also, more of a minor ``problem'' or design feature,
\section{$D$-modules} will not color D as math.
Another example with braces being problematic is

\newcommand{\uint}{\mathop{\mathchoice%
   {\rlap{\smash{$\displaystyle\intop\limits^{\uintbar}$}}}%
   {\rlap{\smash{$\textstyle\intop\limits^{\uintbar}$}}}%
   {\rlap{\smash{$\scriptstyle\intop\limits^{\uintbar}$}}}%
   {\rlap{\smash{$\scriptscriptstyle\intop\limits^{\uintbar}$}}}%
   }\!\int}

where coloring starts being messed up from the second dollar sign and 
on.
chances are these might all be the same problem, just offering lots of 
different examples.

On the positive side, these problems have reinforced even more in me 
the practice of keeping a separate file for all the preample commands, 
so that stuff like that doesn't affect the coloring of the main file. 
:-)

> Brad
>
Haris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1489 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate-dev/attachments/20050509/00deca74/attachment.bin>


More information about the textmate-dev mailing list