Le 3 mars 07 à 18:56, Charilaos Skiadas a écrit :
Hi Alain,
This has nothing to do with themes.
yes i understand that. I try to change some little things in the tex and latex language but it takes too much time to do that very fine.
- \newcommand*{\twoptoff}{\ifnum \catcode`:=13 \catcode`:=12
Shouldn't there be a \ in front of :=13 ?
arghhhh ... yes \catcode`:=13 one big error for me :) and the syntax color is very important to see this kind of errors !!
\define@boolkey : define and @boolkey are not in the same color 3) \protected@edef@tempa @ in one color , tempa in the same color that edef 4) \def@@vertex#1{... @ in one color the second @vertex in an other color
All these are essentially the same question, and it has to do with dealing with @. At the moment we are not allowing @ as part of a command. I thought it was a character to avoid in LaTeX. Can you explain a bit what all the above stand for syntactically, i.e. what pieces are together and what they represent? I am personally not too familiar with the uses of @.
Yes with @ we can protect a macro because the user needs to put \makeatletter and \makeatother in his code if he wants to use @
examples :
the source of latex.ltx or article.cls
\newboolean{@twopt} \setboolean{@twopt}{false}
\newcommand*{\Vertex}[1][]{@vertex[#1]}%
\Vertex is the command for the user but @vertex is the macro in the package
- i've an other question about completion with LaTeX. What is
the good way for me if i want to complete easily newcounter, setcounter, newcommand, usepackage \define@boolkey etc .....
I would suggest using the "Edit Configuration File" command, and adding your own commands and shortcuts there. Would that meet the case for you, or do you really want to use esc for completion, instead of the "insert command based..." command?
I use the two ways and a three one (typeit4me) but i really want to use esc for things like
newcounter, newcommand
Alain