The definition of an alias should be specified in the configuration file using the ALIASES configuration tag.
name=value
ALIASES += sideeffect="\par Side Effects:\n"
Note that you can put \n's in the value part of an alias to insert newlines.
Also note that you can redefine existing special commands if you wish.
Some commands, such as \xrefitem are designed to be used in combination with aliases.
Here is an example of an alias definition with a single argument:
ALIASES += l{1}="\ref \1"
Inside a comment block you can use it as follows
/** See \l{SomeClass} for more information. */
/** See \ref SomeClass for more information. */
Note that you can overload an alias by a version with multiple arguments, for instance:
ALIASES += l{1}="\ref \1" ALIASES += l{2}="\ref \1 \"\2\""
With these alias definitions, we can write
/** See \l{SomeClass,Some Text} for more information. */
/** See \ref SomeClass "Some Text" for more information. */
Aliases can also be expressed in terms of other aliases, e.g. a new command \reminder can be expressed as a \xrefitem via an intermediate \xreflist command as follows:
ALIASES += xreflist{3}="\xrefitem \1 \"\2\" \"\3\" " \ ALIASES += reminder="\xreflist{reminders,Reminder,Reminders}" \
Note that if for aliases with more than one argument a comma is used as a separator, if you want to put a comma inside the command, you will need to escape it with a backslash, i.e.
\l{SomeClass,Some text\, with an escaped comma}
As an example consider the following alias definitions
ALIASES += Bold{1}="<b>\1</b>" ALIASES += Emph{1}="<em>\1</em>"
Inside a comment block you can now use:
/** This is a \Bold{bold \Emph{and} Emphasized} text fragment. */
/** This is a <b>bold <em>and</em> Emphasized</b> text fragment. */