1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
|
<html>
<head><title>Low-level font commands</title></head>
<body>
<h1>Low-level font commands</h1>
<P>
</P>
<P>
These 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 <CITE>The LaTeX
Companion</CITE>.
</P>
<DL COMPACT>
<DT><CODE>\fontencoding{enc}</CODE>
<DD>
Select font encoding. Valid encodings include <CODE>OT1</CODE> and <CODE>T1</CODE>.
<DT><CODE>\fontfamily{family}</CODE>
<DD>
Select font family. Valid families include:
<UL>
<LI><CODE>cmr</CODE> for Computer Modern Roman
<LI><CODE>cmss</CODE> for Computer Modern Sans Serif
<LI><CODE>cmtt</CODE> for Computer Modern Typewriter
</UL>
and numerous others.
<DT><CODE>\fontseries{series}</CODE>
<DD>
Select font series. Valid series include:
<UL>
<LI><CODE>m</CODE> Medium (normal)
<LI><CODE>b</CODE> Bold
<LI><CODE>c</CODE> Condensed
<LI><CODE>bc</CODE> Bold condensed
<LI><CODE>bx</CODE> Bold extended
</UL>
and various other combinations.
<DT><CODE>\fontshape{shape}</CODE>
<DD>
Select font shape. Valid shapes are:
<UL>
<LI><CODE>n</CODE> Upright (normal)
<LI><CODE>it</CODE> Italic
<LI><CODE>sl</CODE> Slanted (oblique)
<LI><CODE>sc</CODE> Small caps
<LI><CODE>ui</CODE> Upright italics
<LI><CODE>ol</CODE> Outline
</UL>
The two last shapes are not available for most font families.
<DT><CODE>\fontsize{size}{skip}</CODE>
<DD>
Set font size. The first parameter is the font size to switch to; the
second is the <CODE>\baselineskip</CODE> to use. The unit of both parameters
defaults to pt. A rule of thumb is that the baselineskip should be 1.2
times the font size.
<DT><CODE>\selectfont</CODE>
<DD>
The changes made by calling the four font commands described above do
not come into effect until <CODE>\selectfont</CODE> is called.
<DT><CODE>\usefont{enc}{family}{series}{shape}</CODE>
<DD>
Equivalent to calling <CODE>\fontencoding</CODE>, <CODE>\fontfamily</CODE>,
<CODE>\fontseries</CODE> and <CODE>\fontshape</CODE> with the given parameters, followed by <CODE>\selectfont</CODE>.
</DL>
<p>--><a href="index.html">LaTeX index</a>
</body>
</html>
|