[TxMt] LateXCommandCompletions.rb
Charilaos Skiadas
skiadas at hanover.edu
Sun Mar 18 04:50:43 UTC 2007
On Feb 22, 2007, at 3:51 AM, Alain Matthes wrote:
> Hello:)
>
> 1) I know that my use of Latex is different from the majorities of
> the users because I create especially packages. I need to have a
> really different completion. I need for example :
>
> newcommand
> renewcommand
> RequirePackage
> newcounter
> setcounter
> stepcounter
> newlength
> etc..
>
> for xkeyval
>
> define at cmdkey
> define at boolkey
> presetkeys....
>
> for ifthen
>
> ifthenelsee etc....
>
>
> etc...
>
> I would like to know the good way to obtain this
>
> Is it necessary that I modify LateXCommandCompletions.rb ?
I now added all the above commands, as well as all commands in the
index of the LaTeX Companion, up to M. Will add the rest when I get a
chance. It includes also commands containing the at sign, @. To use
those, you must set @ to be a word character. Let me know if there
are any commands missing.
> 2) But I do not understand why in the LateXCommandCompletions.rb,
> there are words like pi, Pi, lim etc ... words with 2 or 3 letters ?
> Which is the interest to complement these words?
It just has to do with where the list of commands came originally. It
came from the commands that the grammar was recognizing as built-in
commands, and that includes 2 and 3 letter words. Perhaps they could
be removed, on the other hand the fact that they appear in the list
reassures the user to the fact that they are valid.
Ideally, all those words should be recognized by the grammar and
colored separately. But one would need to add them to the grammar in
an appropriate way.
> greetints alain
Haris Skiadas
Department of Mathematics and Computer Science
Hanover College
More information about the textmate
mailing list