diff options
author | Karl Berry <karl@freefriends.org> | 2009-05-22 23:51:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-05-22 23:51:44 +0000 |
commit | 566f5207d7e3cafb0633d31277067336ccd9cca7 (patch) | |
tree | 7af53e7ac405185168bc1dc38c4e820f442b78d0 /Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-newfontstar.html | |
parent | b0beea26ffffd915bb6d9b82f2d65a0a05b7e23b (diff) |
move generic english documents out of texmf-doc
git-svn-id: svn://tug.org/texlive/trunk@13396 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-newfontstar.html')
-rw-r--r-- | Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-newfontstar.html | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-newfontstar.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-newfontstar.html new file mode 100644 index 00000000000..70ce959aeee --- /dev/null +++ b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-newfontstar.html @@ -0,0 +1,52 @@ +<head> +<title>UK TeX FAQ -- question label newfont*</title> +</head><body> +<h3>What’s wrong with <code>\</code><code>newfont</code>?</h3> +<p/>If all else fails, you <em>can</em> specify a font using the LaTeX +<code>\</code><code>newfont</code> command. The font so specified doesn’t fit into the +LaTeX font selection mechanism, but the technique can be tempting +under several circumstances. The command is merely the thinnest of +wrappers around the <code>\</code><code>font</code> primitive, and doesn’t really fit with +LaTeX at all. A simple, but really rather funny, example of the +problems it poses, may be seen in: +<blockquote> +<pre> +\documentclass[10pt]{article} +\begin{document} +\newfont{\myfont}{cmr17 scaled 2000} +\myfont +\LaTeX +\end{document} +</pre> +</blockquote><p> +(the reader is encouraged to try this). The “A” of <code>\</code><code>LaTeX</code> pretty +much disappears: LaTeX chooses the size on the “A” according to +<em>its</em> idea of the font size (10pt), but positions it according to +the dimensions of “<code>\</code><code>myfont</code>”, which is more than three times +that size. +<p/>Another “<code>\</code><code>myfont</code>” example arises from an entirely different +source. The mini-document: +<blockquote> +<pre> +\documentclass{article} +\begin{document} +\newfont{\myfont}{ecrm1000} +{\myfont voil\`a} +\end{document} +</pre> +</blockquote><p> +gives you “German low double quotes” (under the “a”) in place of +the grave accent. This happens because <i>ecrm1000</i> is in a +different <a href="FAQ-whatenc.html">font encoding</a> than LaTeX is +expecting — if you use the LaTeX <i>fontenc</i> package to +select the EC fonts, all these tiresome encoding issues are +solved for you, behind the scenes. +<p/>There does however remain a circumstance when you will be tempted to +use <code>\</code><code>newfont</code> — viz., to get a font size that doesn’t fall into +the Knuth standard set of sizes: LaTeX (by default) won’t allow you +to use such a size. Don’t despair: see the answer +“<a href="FAQ-fontsize.html">arbitrary font sizes</a>”. +<p/> +<p/> +<p/><p/><p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=newfont*">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=newfont*</a> +</body> |