next up previous contents
Next: A Word About Environments Up: Commands for Text Mode Previous: Commands for Text Mode

Different Kinds of Type

 

By default, all of your typing is done in roman type. For emphasis or for captioning figures, etc., you may want different type styles. The possiblities are:

\textbf{quick brown fox} bold face: quick brown fox
\textit{quick brown fox} italic: quick brown fox
\textsf{quick brown fox} sans serif: quick brown fox
\textsl{quick brown fox} slanted: quick brown fox
\texttt{quick brown fox} typewriter: quick brown fox
\emph{quick brown fox} emphasized: interchanges roman and italic
\sc{quick brown fox} small caps: QUICK brOWN FOX

To change type for a few words within a sentence, use
...Thus, we define a \emph{projective representation} to be...
which yields

...Thus, we define a projective representation to be...

Longer selections of text (more than a paragraph, to be precise) would be included inside a {\textem...} declaration.

latex2e extends tex by including the so-called New Font Selection Scheme (NFSS2) we have just illustrated. The scheme greatly simplifies the machinations necessary to effectively handle multiple typefaces in a complex document under plain ``bare-bones'' tex.

The following table summarizes the various commands to switch among some of the more common typefaces available by default in latex2e:

Effect Local form Global form
roman serif family \textrm{...} {\rmfamily...}
sans serif family \textsf{...} {\sffamily...}
typewriter family \texttt{...} {\ttfamily...}
bold face series \textbf{...} {\bfseries...}
medium face series \textmd{...} {\mdseries...}
upright shape \textup{...} {\upshape...}
italic shape \textit{...} {\itshape...}
slant shape \textsl{...} {\slshape...}
small CAPS shape \textsc{...} {\scshape...}
document font \textnormal{...} {\normalfont...}

Appropriate use of the ``global form'' is described in Section 6.2.

Font size can be modified using the ``local form'' \size{...} and the ``global form'' {\size...}, where size can be any of

\tiny size \normalsize size
\scriptsize size \large size
\footnotesize size \Large size
\small size \LARGE size

For special occasions, you can roll out the

\huge size
\Huge size

In case you're wondering, there is no \HUGE!


next up previous contents
Next: A Word About Environments Up: Commands for Text Mode Previous: Commands for Text Mode

Processed by LaTeX2html