Let say I created the following command in my latex document
\newcommand{\red}[1]{
\textcolor{red}{#1}
}
When working with the LaTeX editor Kile, the autocompletion gives me something like
\red{x} %[Proposed by Kile (autocompletion)]
But instead of 'x', I would like Kile propose to me something like
\red{text} %[Proposed by Kile (autocompletion)]
That could be useful when I have to deal with commands requiring a bunch of arguments. For instance, if I created a command using \newcommand requiring 8 arguments, the autocompletion of kile will propose to me something like :
\mycommand{x}{x}{x}{x}{x}{x}{x}{x} %[Proposed by Kile (autocompletion)]
...but after some times, you do not know who is who! So it would be nice to define 'argument names' so that the autocompletion propose to me something like :
\mycommand{date}{name}{stuff1}{stuff2}{age}{address}{city}{whateveritis} %[Proposed by Kile (autocompletion)]
To summarize, I would like to change this :

to this :




\redtakes a single argument -- be it a single letter ("x") or a longer string ("text") -- while the command\mycommandwould appear to take eight separate arguments. TeX's syntax rules determine what constitutes a separate argument. – Mico Nov 2 '12 at 11:07