Fonts
Published on 30 Nov 2007Tags #LaTeX
Selecting fonts:
Font packages
avant, bookman, chancery, charter, courier, helvet, newcent, palatino, times, utopia
The packages only provide means to automagically set font families (i.e. the actual fonts are available whether or not you decide to use a package):
% ...
\usepackage{PACKAGE}
% ...
\begin{document}
Instead of including one of the packages you can still use the table and the commands below.
Fonts
This is list is by no means exhaustive.
Type | Family | Name |
---|---|---|
roman | cmr | Computer Modern Roman |
ccr | Concrete Romain | |
panr | Pandora Roman | |
eur | Euler Roman | |
pbk | Bookman | |
pzc | Zapf Chancery | |
bch | Charter | |
pnc | New Century Schoolbook | |
ppl | Palatino | |
ptm | Times | |
put | Utopia | |
san serif | cmss | Computer Modern Sans Serif |
pss | Pandora Sans | |
pag | AvantGarde/BookmanNewCentury Schoolbook | |
phv | Helvetica/Palatino/Times | |
typewriter | cmtt | Computer Modern Typewriter |
pcr | Bookman/Courier/Palatino/Times/NewCentury Schoolbook | |
gothic | ygoth | Gothic |
yfrak | Fraktur | |
yswab | Schwabacher | |
pifonts | pzd | ZapfDingbats |
psy | Symbol | |
pzc | ZapfChancery | |
unknown | eus | Euler Script |
euf | Euler Fraktur | |
cmdh | Computer Modern Dunhill |
Selecting a font
\renewcommand{\rmdefault}{FAMILY}% default cmr
\renewcommand{\sfdefault}{FAMILY}% default cmss
\renewcommand{\ttdefault}{FAMILY}% default cmtt
Using Sans Serif by default
Changing the default font family to Sans Serif:
\renewcommand{\familydefault}{sfdefault}
Problem: textbf inside texttt
With the default typewriter font the following construct will not work:
\texttt{foo\textbf{BLARG}bar}
Tnsert the following command into the preamble of your document:
\renewcommand{\ttdefault}{pcr}
Pi fonts
% ...
\usepackage{pifonts}
% ...
\begin{document}
See the following for a list of commands:
-
Selecting a pi font (see table above)
\Pifont{FONT}
-
Inserting a single symbol:
\Pisymbol{FONT}{NUMBER} % or \ding{NUMBER}
-
Filling the remainder of the line:
\Pifill{FONT}{NUMBER} % or \dingfille{NUMBER}
-
Inserting a whole line:
\Piline{FONT}{NUMBER} % or \dingline{NUMBER}
-
Create an list environment which starts items with a predefined symbol:
\begin{Pilist}{FONT}{NUMBER}\end{Pilist} % or \begin{dinglist}{NUMBER}\end{dinglist}
-
Create a list environment which starts a numbered list beginning with the predefined symbol:
\begin{Piautolist}\end{Piautolist}{FONT}{NUMBER} % or \begin{dingautolist}{NUMBER}\end{dingautolist}
This list was designed to be used with ZapfDingbats symbols 172, 182, 192 and 202 but should not exceed 10 items. The
ding
commands have the ZapfDingbats font hardcoded into them.</li> </ul>
See also Text Style