File: latex2e_4.html

package info (click to toggle)
setzer 65-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,372 kB
  • sloc: python: 13,320; xml: 3,660; makefile: 139; sh: 6
file content (608 lines) | stat: -rw-r--r-- 25,293 bytes parent folder | download
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- This document is an unofficial reference manual for LaTeX, a
document preparation system, version of October 2018.

This manual was originally translated from LATEX.HLP v1.0a in the
VMS Help Library.  The pre-translation version was written by
George D. Greenwade of Sam Houston State University.  The
LaTeX 2.09 version was written by Stephen Gilmore.  The
LaTeX2e version was adapted from this by Torsten Martinsen.  Karl
Berry made further updates and additions, and gratefully acknowledges
using Hypertext Help with LaTeX, by Sheldon Green, and
LaTeX Command Summary (for LaTeX 2.09) by
L. Botway and C. Biemesderfer (published by the TeX Users
Group as TeXniques number 10), as reference material.  We also
gratefully acknowledge additional material appearing in
latex2e-reference by Martin Herbert Dietze.  (From these references no
text was directly copied.)

Copyright 2007, 2008, 2009, 2010, 2011, 2012, 2013,
2014, 2015, 2016, 2017, 2018 Karl Berry.

Copyright 1988, 1994, 2007 Stephen Gilmore.

Copyright 1994, 1995, 1996 Torsten Martinsen.

Permission is granted to make and distribute verbatim copies of
this manual provided the copyright notice and this permission notice
are preserved on all copies.


Permission is granted to copy and distribute modified versions of this
manual under the conditions for verbatim copying, provided that the entire
resulting derived work is distributed under the terms of a permission
notice identical to this one.

Permission is granted to copy and distribute translations of this manual
into another language, under the above conditions for modified versions. -->
<!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Fonts (LaTeX2e unofficial reference manual (October 2018))</title>

<meta name="description" content="Fonts (LaTeX2e unofficial reference manual (October 2018))">
<meta name="keywords" content="Fonts (LaTeX2e unofficial reference manual (October 2018))">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<link href="latex2e_0.html#Top" rel="start" title="Top">
<link href="latex2e_30.html#Index" rel="index" title="Index">
<link href="latex2e_0.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="latex2e_0.html#Top" rel="up" title="Top">
<link href="latex2e_5.html#Layout" rel="next" title="Layout">
<link href="latex2e_3.html#Class-and-package-commands" rel="prev" title="Class and package commands">
<style type="text/css">
<!--
body {margin: 1em; margin-top: 0px; padding-top: 1px}
a.anchor {float: right}
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smalllisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>


</head>

<body id="top" lang="en">
<a name="Fonts" class="anchor"></a>
<a name="Fonts-1" class="anchor"></a>
<h2 class="chapter">Fonts</h2>
<a name="Typefaces" class="anchor"></a>
<a name="index-typefaces" class="anchor"></a>
<a name="index-fonts" class="anchor"></a>

<p>Two important aspects of selecting a <em>font</em> are specifying a size
and a style.  The LaTeX commands for doing this are described here.
</p>


<hr>
<a name="Font-styles" class="anchor"></a>
<a name="Font-styles-1" class="anchor"></a>
<h3 class="section">Font styles</h3>

<a name="index-font-styles" class="anchor"></a>
<a name="index-type-styles" class="anchor"></a>
<a name="index-styles-of-text" class="anchor"></a>

<p>The following type style commands are supported by LaTeX.
</p>
<p>In the table below the listed commands, the <code>\text...</code>  commands,
is used with an argument, as in <code>\textit{<var>text</var>}</code>.  This is
the preferred form.  But shown after it, in parenthesis, is the
corresponding declaration form, which is sometimes useful.  This form
takes no arguments, as in <code>{\itshape <var>text</var>}</code>.  The scope of
the declaration form lasts until the next type style command or the end
of the current group.  In addition, each has an environment form such as
<code>\begin{itshape}...\end{itshape}</code>.
</p>
<p>These commands, in both the argument form and the declaration form, are
cumulative; for instance you can get bold sans serif by saying either of
<code>\sffamily\bfseries</code> or <code>\bfseries\sffamily</code>.
</p>
<a name="index-_005cnocorrlist" class="anchor"></a>
<a name="index-_005cnocorr" class="anchor"></a>
<p>One advantage of these commands is that they automatically insert italic
corrections if needed (see <a href="latex2e_19.html#g_t_005c_002f">\/</a>).  Specifically, they insert the
italic correction unless the following character is in the list
<code>\nocorrlist</code>, which by default consists of a period and a comma.
To suppress the automatic insertion of italic correction, use
<code>\nocorr</code> at the start or end of the command argument, such as
<code>\textit{\nocorr text}</code> or <code>\textsc{text \nocorr}</code>.
</p>
<dl compact="compact">
<dt><code>\textrm (\rmfamily)</code></dt>
<dd><a name="index-_005ctextrm" class="anchor"></a>
<a name="index-_005crmfamily" class="anchor"></a>
<p>Roman.
</p>
</dd>
<dt><code>\textit (\itshape)</code></dt>
<dd><a name="index-_005ctextit" class="anchor"></a>
<a name="index-_005citshape" class="anchor"></a>
<p>Italics.
</p>
</dd>
<dt><code>\textmd (\mdseries)</code></dt>
<dd><a name="index-_005ctextmd" class="anchor"></a>
<a name="index-_005cmdseries" class="anchor"></a>
<p>Medium weight (default).
</p>
</dd>
<dt><code>\textbf (\bfseries)</code></dt>
<dd><a name="index-_005ctextbf" class="anchor"></a>
<a name="index-_005cbfseries" class="anchor"></a>
<p>Boldface.
</p>
</dd>
<dt><code>\textup (\upshape)</code></dt>
<dd><a name="index-_005ctextup" class="anchor"></a>
<a name="index-_005cupshape" class="anchor"></a>
<p>Upright (default).
</p>
</dd>
<dt><code>\textsl (\slshape)</code></dt>
<dd><a name="index-_005ctextsl" class="anchor"></a>
<a name="index-_005cslshape" class="anchor"></a>
<p>Slanted.
</p>
</dd>
<dt><code>\textsf (\sffamily)</code></dt>
<dd><a name="index-_005ctextsf" class="anchor"></a>
<a name="index-_005csffamily" class="anchor"></a>
<p>Sans serif.
</p>
</dd>
<dt><code>\textsc (\scshape)</code></dt>
<dd><a name="index-_005ctextsc" class="anchor"></a>
<a name="index-_005cscshape" class="anchor"></a>
<p>Small caps.
</p>
</dd>
<dt><code>\texttt (\ttfamily)</code></dt>
<dd><a name="index-_005ctexttt" class="anchor"></a>
<a name="index-_005cttfamily" class="anchor"></a>
<p>Typewriter.
</p>
</dd>
<dt><code>\textnormal (\normalfont)</code></dt>
<dd><a name="index-_005ctextnormal" class="anchor"></a>
<a name="index-_005cnormalfont" class="anchor"></a>
<p>Main document font.
</p>
</dd>
</dl>

<a name="index-emphasis" class="anchor"></a>
<a name="index-_005cemph" class="anchor"></a>
<p>Although it also changes fonts, the <code>\emph{<var>text</var>}</code> command
is semantic, for text to be emphasized, and should not be used as a
substitute for <code>\textit</code>.  For example, <code>\emph{<var>start
text</var> \emph{<var>middle text</var>} <var>end text</var>}</code> will result in the
<var>start text</var> and <var>end text</var> in italics, but <var>middle text</var>
will be in roman.
</p>
<p>LaTeX also provides the following commands, which unconditionally
switch to the given style, that is, are <em>not</em> cumulative.  They are
used as declarations: <code>{\<var>cmd</var>...}</code> instead of
<code>\<var>cmd</var>{...}</code>.
</p>
<p>(The unconditional commands below are an older version of font
switching. The earlier commands are an improvement in most
circumstances. But sometimes an unconditional font switch is precisely
what you want.)
</p>
<dl compact="compact">
<dt><code>\bf</code>
<a name="index-_005cbf" class="anchor"></a>
</dt>
<dd><a name="index-bold-font" class="anchor"></a>
<p>Switch to bold face.
</p>
</dd>
<dt><code>\cal</code>
<a name="index-_005ccal" class="anchor"></a>
</dt>
<dd><a name="index-script-letters-for-math" class="anchor"></a>
<a name="index-calligraphic-letters-for-math" class="anchor"></a>
<p>Switch to calligraphic letters for math.
</p>
</dd>
<dt><code>\it</code>
<a name="index-_005cit" class="anchor"></a>
</dt>
<dd><a name="index-italic-font" class="anchor"></a>
<p>Italics.
</p>
</dd>
<dt><code>\rm</code>
<a name="index-_005crm" class="anchor"></a>
</dt>
<dd><a name="index-roman-font" class="anchor"></a>
<p>Roman.
</p>
</dd>
<dt><code>\sc</code>
<a name="index-_005csc" class="anchor"></a>
</dt>
<dd><a name="index-small-caps-font" class="anchor"></a>
<p>Small caps.
</p>
</dd>
<dt><code>\sf</code>
<a name="index-_005csf" class="anchor"></a>
</dt>
<dd><a name="index-sans-serif-font" class="anchor"></a>
<p>Sans serif.
</p>
</dd>
<dt><code>\sl</code>
<a name="index-_005csl" class="anchor"></a>
</dt>
<dd><a name="index-slanted-font" class="anchor"></a>
<a name="index-oblique-font" class="anchor"></a>
<p>Slanted (oblique).
</p>
</dd>
<dt><code>\tt</code>
<a name="index-_005ctt" class="anchor"></a>
</dt>
<dd><a name="index-typewriter-font" class="anchor"></a>
<a name="index-monospace-font" class="anchor"></a>
<a name="index-fixed_002dwidth-font" class="anchor"></a>
<p>Typewriter (monospace, fixed-width).
</p>
</dd>
</dl>

<p>The <code>\em</code> command is the unconditional version of <code>\emph</code>.
</p>
<p>The following commands are for use in math mode.  They are not
cumulative, so <code>\mathbf{\mathit{<var>symbol</var>}}</code> does not
create a boldface and italic <var>symbol</var>; instead, it will just be in
italics.  This is because typically math symbols need consistent
typographic treatment, regardless of the surrounding environment.
</p>
<dl compact="compact">
<dt><code>\mathrm</code></dt>
<dd><a name="index-_005cmathrm" class="anchor"></a>
<p>Roman, for use in math mode.
</p>
</dd>
<dt><code>\mathbf</code></dt>
<dd><a name="index-_005cmathbf" class="anchor"></a>
<p>Boldface, for use in math mode.
</p>
</dd>
<dt><code>\mathsf</code></dt>
<dd><a name="index-_005cmathsf" class="anchor"></a>
<p>Sans serif, for use in math mode.
</p>
</dd>
<dt><code>\mathtt</code></dt>
<dd><a name="index-_005cmathtt" class="anchor"></a>
<p>Typewriter, for use in math mode.
</p>
</dd>
<dt><code>\mathit</code></dt>
<dt><code>(\mit)</code></dt>
<dd><p>Italics, for use in math mode.
</p>
</dd>
<dt><code>\mathnormal</code></dt>
<dd><a name="index-_005cmathnormal" class="anchor"></a>
<p>For use in math mode, e.g., inside another type style declaration.
</p>
</dd>
<dt><code>\mathcal</code></dt>
<dd><a name="index-_005cmathcal" class="anchor"></a>
<p>Calligraphic letters, for use in math mode.
</p>
</dd>
</dl>

<a name="index-_005cmathversion" class="anchor"></a>
<a name="index-math_002c-bold" class="anchor"></a>
<a name="index-bold-math" class="anchor"></a>
<p>In addition, the command <code>\mathversion{bold}</code> can be used for
switching to bold letters and symbols in
formulas. <code>\mathversion{normal}</code> restores the default.
</p>
<a name="index-_005coldstylenums" class="anchor"></a>
<a name="index-numerals_002c-old_002dstyle" class="anchor"></a>
<a name="index-old_002dstyle-numerals" class="anchor"></a>
<a name="index-lining-numerals" class="anchor"></a>
<a name="index-package_002c-textcomp" class="anchor"></a>
<a name="index-textcomp-package" class="anchor"></a>

<p>Finally, the command <code>\oldstylenums{<var>numerals</var>}</code> will typeset
so-called &ldquo;old-style&rdquo; numerals, which have differing heights and
depths (and sometimes widths) from the standard &ldquo;lining&rdquo; numerals,
which all have the same height as uppercase letters.  LaTeX&rsquo;s
default fonts support this, and will respect <code>\textbf</code> (but not
other styles; there are no italic old-style numerals in Computer
Modern).  Many other fonts have old-style numerals also; sometimes the
<code>textcomp</code> package must be loaded, and sometimes package options
are provided to make them the default.  FAQ entry:
<a class="external" href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=osf">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=osf</a>.
</p>

<hr>
<a name="Font-sizes" class="anchor"></a>
<a name="Font-sizes-1" class="anchor"></a>
<h3 class="section">Font sizes</h3>

<a name="index-font-sizes" class="anchor"></a>
<a name="index-typeface-sizes" class="anchor"></a>
<a name="index-sizes-of-text" class="anchor"></a>

<p>The following standard type size commands are supported by LaTeX.
The table shows the command name and the corresponding actual font
size used (in points) with the &lsquo;<samp>10pt</samp>&rsquo;, &lsquo;<samp>11pt</samp>&rsquo;, and
&lsquo;<samp>12pt</samp>&rsquo; document size options, respectively (see <a href="latex2e_3.html#Document-class-options">Document class options</a>).
</p>
<a name="index-_005ctiny" class="anchor"></a>
<a name="index-_005cscriptsize" class="anchor"></a>
<a name="index-_005cfootnotesize" class="anchor"></a>
<a name="index-_005csmall" class="anchor"></a>
<a name="index-_005cnormalsize" class="anchor"></a>
<a name="index-_005clarge" class="anchor"></a>
<a name="index-_005cLarge" class="anchor"></a>
<a name="index-_005cLARGE" class="anchor"></a>
<a name="index-_005chuge" class="anchor"></a>
<a name="index-_005cHuge" class="anchor"></a>

<table>
<thead><tr><th>Command</th><th><code>10pt</code></th><th><code>11pt</code></th><th><code>12pt</code></th></tr></thead>
<tr><td><code>\tiny</code></td><td>5</td><td>6</td><td>6</td></tr>
<tr><td><code>\scriptsize</code></td><td>7</td><td>8</td><td>8</td></tr>
<tr><td><code>\footnotesize</code></td><td>8</td><td>9</td><td>10</td></tr>
<tr><td><code>\small</code></td><td>9</td><td>10</td><td>10.95</td></tr>
<tr><td><code>\normalsize</code> (default)</td><td>10</td><td>10.95</td><td>12</td></tr>
<tr><td><code>\large</code></td><td>12</td><td>12</td><td>14.4</td></tr>
<tr><td><code>\Large</code></td><td>14.4</td><td>14.4</td><td>17.28</td></tr>
<tr><td><code>\LARGE</code></td><td>17.28</td><td>17.28</td><td>20.74</td></tr>
<tr><td><code>\huge</code></td><td>20.74</td><td>20.74</td><td>24.88</td></tr>
<tr><td><code>\Huge</code></td><td>24.88</td><td>24.88</td><td>24.88</td></tr>
</table>

<p>The commands are listed here in declaration forms. You use them by
declaring them, as with this example.
</p>
<div class="example">
<pre class="example">\begin{quotation} \small
  The Tao that can be named is not the eternal Tao.
\end{quotation}
</pre></div>

<p>The scope of the <code>\small</code> lasts until the end of the
<code>quotation</code> environment.  It would also end at the next type style
command or the end of the current group, so you could enclose it in
extra curly braces <code>{\small We are here, we are here, we are
here!}</code>.  You can instead use the environment form of these commands;
for instance, <code>\begin{tiny}...\end{tiny}</code>.
</p>

<hr>
<a name="Low_002dlevel-font-commands" class="anchor"></a>
<a name="Low_002dlevel-font-commands-1" class="anchor"></a>
<h3 class="section">Low-level font commands</h3>

<a name="index-low_002dlevel-font-commands" class="anchor"></a>
<a name="index-font-commands_002c-low_002dlevel" class="anchor"></a>

<p>These commands are primarily intended for writers of macros and
packages.  The commands listed here are only a subset of the available
ones.
</p>
<dl compact="compact">
<dd><a name="low-level-font-commands-fontencoding" class="anchor"></a></dd>
<dt><code>\fontencoding{<var>encoding</var>}</code></dt>
<dd><a name="index-_005cfontencoding" class="anchor"></a>
<p>Select the font encoding, the encoding of the output font. There are a
large number of valid encodings.  The most common are <code>OT1</code>,
Knuth&rsquo;s original encoding for Computer Modern (the default), and
<code>T1</code>, also known as the Cork encoding, which has support for the
accented characters used by the most widespread European languages
(German, French, Italian, Polish and others), which allows TeX to
hyphenate words containing accented letters. For more, see
<a class="external" href="https://ctan.org/pkg/encguide">https://ctan.org/pkg/encguide</a>.
</p>
<a name="low-level-font-commands-fontfamily" class="anchor"></a></dd>
<dt><code>\fontfamily{<var>family</var>}</code></dt>
<dd><a name="index-_005cfontfamily" class="anchor"></a>
<a name="index-families_002c-of-fonts" class="anchor"></a>
<a name="index-font-catalogue" class="anchor"></a>
<p>Select the font family.  The web page
<a class="external" href="http://www.tug.dk/FontCatalogue/">http://www.tug.dk/FontCatalogue/</a> provides one way to browse
through many of the fonts easily used with LaTeX.  Here are
examples of some common families.
</p>
<table>
<tr><td><code>pag</code></td><td>Avant Garde</td></tr>
<tr><td><code>fvs</code></td><td>Bitstream Vera Sans</td></tr>
<tr><td><code>pbk</code></td><td>Bookman</td></tr>
<tr><td><code>bch</code></td><td>Charter</td></tr>
<tr><td><code>ccr</code></td><td>Computer Concrete</td></tr>
<tr><td><code>cmr</code></td><td>Computer Modern</td></tr>
<tr><td><code>cmss</code></td><td>Computer Modern Sans Serif</td></tr>
<tr><td><code>cmtt</code></td><td>Computer Modern Typewriter</td></tr>
<tr><td><code>pcr</code></td><td>Courier</td></tr>
<tr><td><code>phv</code></td><td>Helvetica</td></tr>
<tr><td><code>fi4</code></td><td>Inconsolata</td></tr>
<tr><td><code>lmr</code></td><td>Latin Modern</td></tr>
<tr><td><code>lmss</code></td><td>Latin Modern Sans</td></tr>
<tr><td><code>lmtt</code></td><td>Latin Modern Typewriter</td></tr>
<tr><td><code>pnc</code></td><td>New Century Schoolbook</td></tr>
<tr><td><code>ppl</code></td><td>Palatino</td></tr>
<tr><td><code>ptm</code></td><td>Times</td></tr>
<tr><td><code>uncl</code></td><td>Uncial</td></tr>
<tr><td><code>put</code></td><td>Utopia</td></tr>
<tr><td><code>pzc</code></td><td>Zapf Chancery</td></tr>
</table>


<a name="low-level-font-commands-fontseries" class="anchor"></a></dd>
<dt><code>\fontseries{<var>series</var>}</code></dt>
<dd><a name="index-_005cfontseries" class="anchor"></a>
<a name="index-series_002c-of-fonts" class="anchor"></a>
<p>Select the font series.  A <em>series</em> combines a <em>weight</em> and a
<em>width</em>.  Typically, a font supports only a few of the possible
combinations.  Some common combined series values include:
</p>
<table>
<tr><td><code>m</code></td><td>Medium (normal)</td></tr>
<tr><td><code>b</code></td><td>Bold</td></tr>
<tr><td><code>c</code></td><td>Condensed</td></tr>
<tr><td><code>bc</code></td><td>Bold condensed</td></tr>
<tr><td><code>bx</code></td><td>Bold extended</td></tr>
</table>

<a name="index-weights_002c-of-fonts" class="anchor"></a>
<p>The possible values for weight, individually, are:
</p>
<table>
<tr><td><code>ul</code></td><td>Ultra light</td></tr>
<tr><td><code>el</code></td><td>Extra light</td></tr>
<tr><td><code>l</code></td><td>Light</td></tr>
<tr><td><code>sl</code></td><td>Semi light</td></tr>
<tr><td><code>m</code></td><td>Medium (normal)</td></tr>
<tr><td><code>sb</code></td><td>Semi bold</td></tr>
<tr><td><code>b</code></td><td>Bold</td></tr>
<tr><td><code>eb</code></td><td>Extra bold</td></tr>
<tr><td><code>ub</code></td><td>Ultra bold</td></tr>
</table>
 
<a name="index-widths_002c-of-fonts" class="anchor"></a>
<p>The possible values for width, individually, are (the meaning and
relationship of these terms varies with individual typefaces):
</p>
<table>
<tr><td><code>uc</code></td><td>Ultra condensed</td></tr>
<tr><td><code>ec</code></td><td>Extra condensed</td></tr>
<tr><td><code>c</code></td><td>Condensed</td></tr>
<tr><td><code>sc</code></td><td>Semi condensed</td></tr>
<tr><td><code>m</code></td><td>Medium</td></tr>
<tr><td><code>sx</code></td><td>Semi expanded</td></tr>
<tr><td><code>x</code></td><td>Expanded</td></tr>
<tr><td><code>ex</code></td><td>Extra expanded</td></tr>
<tr><td><code>ux</code></td><td>Ultra expanded</td></tr>
</table>

<p>When forming the <var>series</var> string from the weight and width, drop the
<code>m</code> that stands for medium weight or medium width, unless both
weight and width are <code>m</code>, in which case use just one
(&lsquo;<samp><code>m</code></samp>&rsquo;).
</p> 
</dd>
<dt><code>\fontshape{<var>shape</var>}</code></dt>
<dd><a name="index-_005cfontshape" class="anchor"></a>
<a name="index-shapes_002c-of-fonts" class="anchor"></a>
<a name="low-level-font-commands-fontshape" class="anchor"></a><p>Select font shape. Valid shapes are:
</p>
<table>
<tr><td><code>n</code></td><td>Upright (normal)</td></tr>
<tr><td><code>it</code></td><td>Italic</td></tr>
<tr><td><code>sl</code></td><td>Slanted (oblique)</td></tr>
<tr><td><code>sc</code></td><td>Small caps</td></tr>
<tr><td><code>ui</code></td><td>Upright italics</td></tr>
<tr><td><code>ol</code></td><td>Outline</td></tr>
</table>

<p>The two last shapes are not available for most font families, and
small caps are often missing as well.
</p>
<a name="low-level-font-commands-fontsize" class="anchor"></a></dd>
<dt><code>\fontsize{<var>size</var>}{<var>skip</var>}</code></dt>
<dd><a name="index-_005cfontsize" class="anchor"></a>
<a name="index-font-size" class="anchor"></a>
<a name="index-_005cbaselineskip" class="anchor"></a>
<p>Set the font size and the line spacing.  The unit of both parameters
defaults to points (<code>pt</code>).  The line spacing is the nominal
vertical space between lines, baseline to baseline.  It is stored in the
parameter <code>\baselineskip</code>.  The default <code>\baselineskip</code> for
the Computer Modern typeface is 1.2 times the <code>\fontsize</code>.
Changing <code>\baselineskip</code> directly is inadvisable since its value is
reset every time a size change happens; see <code>\baselinestretch</code>, next.
</p>
<a name="low-level-font-commands-baselinestretch" class="anchor"></a></dd>
<dt><code>\baselinestretch</code></dt>
<dd><a name="index-_005cbaselinestretch" class="anchor"></a>
<p>LaTeX multiplies the line spacing by the value of the
<code>\baselinestretch</code> parameter; the default factor is 1.  A change
takes effect when <code>\selectfont</code> (see below) is called.  You can
make a line skip change happen for the entire document, for instance
doubling it, by doing <code>\renewcommand{\baselinestretch}{2.0}</code> in
the preamble.
</p>
<a name="index-package_002c-setspace" class="anchor"></a>
<a name="index-setspace-package" class="anchor"></a>

<a name="index-double-spacing" class="anchor"></a>
<p>However, the best way to double-space a document is to use the
<samp>setspace</samp> package.  In addition to offering a number of spacing
options, this package keeps the line spacing single-spaced in places
where that is typically desirable, such as footnotes and figure
captions.  See the package documentation.
</p>
<a name="low-level-font-commands-linespread" class="anchor"></a></dd>
<dt><code>\linespread{<var>factor</var>}</code></dt>
<dd><a name="index-_005clinespread" class="anchor"></a>
<p>Equivalent to
<code>\renewcommand{\baselinestretch}{<var>factor</var>}</code>, and
therefore must be followed by <code>\selectfont</code> to have any effect.
Best specified in the preamble, or use the <code>setspace</code> package, as
just described.
</p>
<a name="low-level-font-commands-selectfont" class="anchor"></a></dd>
<dt><code>\selectfont</code></dt>
<dd><a name="index-_005cselectfont" class="anchor"></a>
<p>The effects of the font commands described above do not happen until
<code>\selectfont</code> is called, as in
<code>\fontfamily{<var>familyname</var>}\selectfont</code>.  It is often useful
to put this in a macro:<br>
<code>\newcommand*{\myfont}{\fontfamily{<var>familyname</var>}\selectfont}</code><br>
(see <a href="latex2e_12.html#g_t_005cnewcommand-_0026-_005crenewcommand">\newcommand &amp; \renewcommand</a>).
</p>
<a name="low-level-font-commands-usefont" class="anchor"></a></dd>
<dt><code>\usefont{<var>enc</var>}{<var>family</var>}{<var>series</var>}{<var>shape</var>}</code></dt>
<dd><a name="index-_005cusefont" class="anchor"></a>
<p>The same as invoking <code>\fontencoding</code>, <code>\fontfamily</code>,
<code>\fontseries</code> and <code>\fontshape</code> with the given parameters,
followed by <code>\selectfont</code>.  For example:
</p>
<div class="example">
<pre class="example">\usefont{ot1}{cmr}{m}{n}
</pre></div>

</dd>
</dl>





</body>
</html>