diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-2letterfontcmd.html')
-rw-r--r-- | Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-2letterfontcmd.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-2letterfontcmd.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-2letterfontcmd.html index c84861521e0..ee10b070a16 100644 --- a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-2letterfontcmd.html +++ b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-2letterfontcmd.html @@ -1,7 +1,7 @@ <head> <title>UK TeX FAQ -- question label 2letterfontcmd</title> </head><body> -<h3>What’s wrong with <code>\</code><code>bf</code>, <code>\</code><code>it</code>, etc.?</h3> +<h3>What’s wrong with <code>\</code><code>bf</code>, <code>\</code><code>it</code>, etc.?</h3> <p/>The font-selection commands of LaTeX 2.09 were <code>\</code><code>rm</code>, <code>\</code><code>sf</code>, <code>\</code><code>tt</code>, <code>\</code><code>it</code>, <code>\</code><code>sl</code>, <code>\</code><code>em</code> and <code>\</code><code>bf</code>; they were modal commands, so you used them as: @@ -41,10 +41,10 @@ LaTeX2e font selections with the old style commands: </blockquote><p> ignores the <code>\</code><code>textbf</code> that encloses the text, and produces typewriter text at medium weight. -<p/>So why are these commands deprecated? — it is because of confusions +<p/>So why are these commands deprecated? — it is because of confusions such as that in the last example. The alternative (LaTeX2e) commands are discussed in the rest of this answer. -<p/>LaTeX2e’s font commands come in two forms: modal commands and +<p/>LaTeX2e’s font commands come in two forms: modal commands and text-block commands. The default set of modal commands offers weights <code>\</code><code>mdseries</code> and <code>\</code><code>bfseries</code>, shapes <code>\</code><code>upshape</code>, <code>\</code><code>itshape</code>, <code>\</code><code>scshape</code> and <code>\</code><code>slshape</code>, and families @@ -68,7 +68,7 @@ in the default Computer Modern fonts), or </pre> </blockquote><p> (note the italic correction needed on slanted fonts, too). -<p/>LaTeX2e’s text block commands take the first two letters of the +<p/>LaTeX2e’s text block commands take the first two letters of the modal commands, and form a <code>\</code><code>text</code><em><code>xx</em></code> command from them. Thus <code>\</code><code>bfseries</code> becomes <code>\</code><code>textbf{</code><em>text</em><code>}</code>, <code>\</code><code>itshape</code> becomes <code>\</code><code>textit{</code><em>text</em><code>}</code>, and <code>\</code><code>ttfamily</code> @@ -98,19 +98,19 @@ for a bold slanted instance of the current family (note the italic correction applied at the end of the modal command group, again). <p/>The new commands (as noted above) override commands of the same type. In almost all cases, this merely excludes ludicrous ideas such as -“upright slanted” fonts, or “teletype roman” fonts. There are a +“upright slanted” fonts, or “teletype roman” fonts. There are a couple of immediate oddities, though. The first is the conflict between <code>\</code><code>itshape</code> (or <code>\</code><code>slshape</code>) and <code>\</code><code>scshape</code>: while many claim that an italic small-caps font is typographically unsound, such -fonts do exist. Daniel Taupin’s <i>smallcap</i> package enables +fonts do exist. Daniel Taupin’s <i>smallcap</i> package enables use of the instances in the <a href="FAQ-ECfonts.html">EC fonts</a>, and similar techniques could be brought to bear on many other font sets. The second is the conflict between <code>\</code><code>upshape</code> and <code>\</code><code>itshape</code>: Knuth actually offers an upright-italic font which LaTeX uses for -the “£” symbol in the default font set. The combination is -sufficiently weird that, while there’s a defined font shape, no +the “£” symbol in the default font set. The combination is +sufficiently weird that, while there’s a defined font shape, no default LaTeX commands exist; to use the shape, the (eccentric) user -needs LaTeX’s simplest font selection commands: +needs LaTeX’s simplest font selection commands: <blockquote> <pre> |