| computersci.org | |
|
|
|
Table of Contents |
Typefaces« Text Boxes | Table of Contents | Parameters »
StylesThere are two basic methods for changing the font styles in LaTeX One is the old method of using the predefined font attributes commands (i.e. Font ChangingLaTeX has added new commands for selecting the font used for text in the document. These new commands allow the changing of a single font attribute: family, series, and shape. The following is a description of the commands used in changing font attributes. The new definition of the old La Te X font commands are given in parenthesis. Font Families \rmfamily (\rm) - Roman font
\sffamily (\sf) - sans serif font
\ttfamily (\tt) - typewriter font
Font Series \bfseries (\bf) - boldface
\mdseries - medium
Font Shape \upshape - normal
\itshape (\it) - italics
\slshape (\sl) - slanted
\scshape (\sc) - small caps
These declaration forms are cumulative; i.e., you can say Command FormsThese commands are used like \textit{italics 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 following is a list of the typeface styles available in La Te X:
SizesThe following standard type size commands are supported by LaTeX The commands as listed here are “declaration forms”. The scope of the declaration form lasts until the next type style command or the end of the current group. You can also use the environment form of these commands; e.g. \tiny \scriptsize \footnotesize \small \normalsize (default) \large \Large \LARGE \huge \Huge Low-Level Font CommandsThese commands are primarily intended for writers of macros and packages. The commands listed here are only a subset of the available ones. For full details, you should consult Chapter 7 of The LaTeX Companion.
The two last shapes are not available for most font families.
|
|
Page last
modified on February 24, 2009, at 12:34 PM
|