[TxMt] Re: comments in LaTeX bundle, wrong with TeX grammar

Charilaos Skiadas cskiadas at gmail.com
Tue Jun 17 15:21:47 UTC 2008


On Jun 17, 2008, at 11:07 AM, Damien Pollet wrote:

> Hi list,
>
> The comment/decomment command (apple-/) has a different effect in
> LaTeX files (correctly prepends %) than in TeX files (incorrectly
> prepends #).
>
> To fix that:
> < ciaran> cDlm: ok, if you go into the bundle editor, change the
> dropdown at top left to
>                 select Preferences, and then look for the "Comments"
> item in the LaTeX bundle
> < ciaran> and change where it says "text.tex.latex" at the bottom
> right to be "text.tex"

Thanks, I just committed a fix.

> Also here are the conclusions of the IRC discussion with ciaran and  
> allan:
> - the TeX grammar is not meant to be use per se (then it shouldn't
> appear in the mode menu at the bottom of buffers)

Well, for people working in plain TeX mode, that would be the  
language to choose. Not sure how many those people are however. That  
is why we don't have a shortcut for it. Actually TeX Math is the one  
that should definitely not appear there. But I suppose if noone uses  
the TeX bundle, we can take that out of there as well. How do we make  
it not appear there though, and still exist?

> - .sty files are claimed by the TeX grammar (LaTeX would be better)

IIRC, sty files often don't look too good on the LaTeX syntax  
coloring, but perhaps I am misremembering. Do you write sty files,  
and in that case would you rather have LaTeX as the grammar for them?

> -- 
> Damien Pollet
> type less, do more [ | ] http://people.untyped.org/damien.pollet

Haris Skiadas
Department of Mathematics and Computer Science
Hanover College







More information about the textmate mailing list