The following type style commands are supported by LaTeX.
These commands are used like \textit{italic text}
. The
corresponding command in parenthesis is the “declaration form”, which
takes no arguments. The scope of the declaration form lasts until the
next type style command or the end of the current group.
The declaration forms are cumulative; i.e., you can say either
\sffamily\bfseries
or \bfseries\sffamily
to get bold
sans serif.
You can also use the environment form of the declaration forms; for instance,
\begin{ttfamily}...\end{ttfamily}
.
\textrm (\rmfamily)
\textit (\itshape)
\emph
\textit
and \textrm
).
\textmd (\mdseries)
\textbf (\bfseries)
\textup (\upshape)
\textsl (\slshape)
\textsf (\sffamily)
\textsc (\scshape)
\texttt (\ttfamily)
\textnormal (\normalfont)
\mathrm
\mathbf
\mathsf
\mathtt
\mathit
(\mit)
\mathnormal
\mathcal
In addition, the command
\mathversion{bold}
can be used for switching to bold letters and symbols in
formulas. \mathversion{normal}
restores the default.
LaTeX also provides these commands, which unconditionally switch to
the given style, that is, are not cumulative. They are used
differently than the above commands, too: {\
cmd ...}
instead of \
cmd{...}
. These are two very different
things.
\bf
\cal
\em
\it
\rm
\sc
\sf
\sl
\tt