summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/doc/english/latex2e-html/fonts2e.html
blob: 1bc6a6108cf1f88de2a97210ec1f88640e83efe5 (plain)
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
<html>
<head><title>Help On LaTeX2e Font Selection</title></head>
<body bgcolor="#ffffff" text="#000000" link="#000099" vlink="#cc0000" alink="#cc0000">
<h1><font size="-2">Hypertext Help with LaTeX</font><br><font color="#cc0000">Font Selection (LaTeX2e)</font></h1>
The following methods for font selection may 
<strong>not</strong> be used in math mode.
<p>
Type styles are specified by three <em>independent</em> components. If
a font (the combination of these three components) is chosen which is
not available, LaTeX will issue a warning and substitute a similar font.
<p>
<ul>
<li>series
<li>family
<li>shape
</ul>
These may be chosen by either a command so that the choice applies
to the text within the command argument, or by a 
<a href="declarations.html">declaration</a> which obeys the usual
rules for scope.  The two forms are
<pre>
    <strong>declaration</strong>    <strong>command</strong>

    \mdseries      \textmd      Medium Series
    \bfseries      \textbf      Boldface Series

    \rmfamily      \textrm      Roman Family
    \sffamily      \textsf      Sans Serif Family
    \ttfamily      \texttt      Typewrite Family

    \upshape       \textup      Upright Shape
    \itshape       \textit      Italic Shape
    \slshape       \textsl      Slanted Shape
    \scshape       \textsc      Small Caps Shape
    \normalfont    \textnormal  Normal Style 
</pre>
The <tt>\normalfont</tt> declaration sets series, family, and shape to
the main text font of the document.
<p>
When using the Typewriter Family, words will be hyphenated only where
permitted by a <tt><a href="ltx-182.html">\-</a></tt> command.   
<hr>
See also Typeface <a href="ltx-178.html">Sizes</a><br>
See also <a href="mathfonts.html">Math fonts and styles</a><br>
Return to <a href="ltx-2.html">LaTeX Table of Contents</a>
<hr>
<address>
Revised: Sheldon Green, 19 May 1995.
</address>
</body>
</html>