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-underscore.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-underscore.html')
-rw-r--r-- | Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-underscore.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-underscore.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-underscore.html new file mode 100644 index 00000000000..6008a15a443 --- /dev/null +++ b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-underscore.html @@ -0,0 +1,42 @@ +<head> +<title>UK TeX FAQ -- question label underscore</title> +</head><body> +<h3>How to use the underscore character</h3> +<p/>The underscore character ‘<code>_</code>’ is ordinarily used in +TeX to indicate a subscript in maths mode; if you type +<code>_</code>, on its own, in the course of ordinary text, TeX will +complain. If you’re writing a document which will contain a large +number of underscore characters, the prospect of typing +<code>\</code><code>_</code> (or, worse, <code>\</code><code>textunderscore</code>) for every one of +them will daunt most ordinary people. +<p/>Moderately skilled macro programmers can readily generate a quick hack +to permit typing ‘<code>_</code>’ to mean ‘text underscore’. +However, the code <em>is</em> somewhat tricky, and more importantly +there are significant points where it’s easy to get it wrong. There +is therefore a package <i>underscore</i> which provides a general +solution to this requirement. +<p/>There is a problem, though: OT1 text fonts don’t contain an +underscore character, unless they’re in the typewriter version of the +encoding (used by fixed-width fonts such as <code>cmtt</code>). So either +you must ensure that your underscore characters only occur in text set +in a typewriter font, or you must use a more modern encoding, such as +T1, which has the same layout for every font, and thus an +underscore in every font. +<p/>If the requirement is only for occasional uses of underscores, it may +be acceptable to use the following construct: +<blockquote> +<pre> +\def\us{\char`\_} +... +\texttt{create\us process} +</pre> +</blockquote><p> +The construction isn’t in the least robust (in the normal English +sense of the word), but it <em>is</em> robust under expansion (i.e., the +LaTeX sense of the word); so use it with care, but don’t worry +about section headings and the like. +<dl> +<dt><tt><i>underscore.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/misc/underscore.sty">macros/latex/contrib/misc/underscore.sty</a> +</dl> +<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=underscore">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=underscore</a> +</body> |