\math...
: examples are
\mathbf
, \mathcal
, etc.\text...
: e.g. \textbf
and \textrm
. The exception to this is
\emph
, since it occurs very commonly in author documents and so
deserves a shorter name.T
(standard 256-long text encodings), M
(standard
256-long math encodings), S
(standard 256-long symbol encodings),
OT
(standard 128-long text encodings) and OM
(standard 128-long
math encodings). Please do not use the above starting letters for
non-portable encodings. If new standard encoding emerge then we
shall add them in a later release of LaTeX.
Encoding schemes which are local to a site should start with L
.
Whenever possible, you should use the series and shape names suggested in The LaTeX Companion since this will make it easier to combine new fonts with existing fonts.
Where possible, text symbols should be named as \text
followed by
the Adobe glyph name: for example \textonequarter
or
\textsterling
. Similarly, math symbols should be named as
\math
followed by the glyph name, for example \mathonequarter
or \mathsterling
. Commands which can be used in text or math can
then be defined using \ifmmode
, for example:
\DeclareRobustCommand{\pounds}{% \ifmmode \mathsterling \else \textsterling \fi }Note that commands defined in this way must be robust, in case they get put into a section title or other moving argument.