Often it happens that I would like to define macros that I would use very frequently throughout the document – for example, a special symbol that I use repeatedly in many equations.
Ideally, in such situations, I would like to keep the name of the macro as short as possible. However, most of the one-letter names seem to be already defined, either in one of the standard Latex classes or in commonly-used packages. For example, \b
, \c
, \d
, \i
, \j
, \l
, \o
, \t
, \u
, and \v
are already defined. Usually I just give up and use something like \myX
instead of \X
to avoid conflicts, but it gets a bit verbose.
Two questions:
-
Is there a list of very short names that are available and that I could (reasonably safely) use for my own purposes?
-
Are there some clever tricks and hacks that I could use to define short names for macros? For example, the
babel
package makes the"
character special so that you can use sequences such as"=
and"a
to enter symbols. Could I use a similar trick for my own purposes, using another character instead of"
– or was it the only character that was not yet allocated?
I would like to stick to plain 7-bit ASCII characters.
Best Answer
You can display the definitions of this single-letter macros using:
The
texdef
command is available on CTAN.Most of them seem to be diacritics. See https://en.wikibooks.org/wiki/LaTeX/Special_Characters for a table.
Here the post-formatted output of the above
texdef
: