summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-actinarg.html
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-doc/doc/english/FAQ-en/html/FAQ-actinarg.html')
-rw-r--r--Master/texmf-doc/doc/english/FAQ-en/html/FAQ-actinarg.html24
1 files changed, 12 insertions, 12 deletions
diff --git a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-actinarg.html b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-actinarg.html
index 368f07a8548..1096d750a62 100644
--- a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-actinarg.html
+++ b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-actinarg.html
@@ -2,7 +2,7 @@
<title>UK TeX FAQ -- question label actinarg</title>
</head><body>
<h3>Active characters in command arguments</h3>
-<p>Occasionally, it's nice to make one or two characters active in the
+<p>Occasionally, it&rsquo;s nice to make one or two characters active in the
argument of a command, to make it easier for authors to code the
arguments.
<p>Active characters <em>can</em> be used safely in such situations; but
@@ -15,7 +15,7 @@ in a macro for specifying chords.
elsewhere in TeX (to say the least!), so that the characters can
only be made active while the command is executing.
<p>Using the techniques discussed in
-"<a href="FAQ-activechars.html">characters as commands</a>",
+&ldquo;<a href="FAQ-activechars.html">characters as commands</a>&rdquo;,
we can define:
<blockquote>
<pre>
@@ -24,7 +24,7 @@ we can define:
\gdef#{$\sharp$}
\endgroup
</pre>
-</blockquote>
+</blockquote><p>
and:
<blockquote>
<pre>
@@ -34,10 +34,10 @@ and:
\def~{$\flat$}%
}
</pre>
-</blockquote>
+</blockquote><p>
The second problem is one of timing: the command has to make each
character active <em>before</em> its arguments are read: this means that
-the command can't actually "have" arguments itself, but must be
+the command can&rsquo;t actually &ldquo;have&rdquo; arguments itself, but must be
split in two. So we write:
<blockquote>
<pre>
@@ -52,25 +52,25 @@ split in two. So we write:
\endgroup
}
</pre>
-</blockquote>
+</blockquote><p>
and we can use the command as <code>\</code><code>chord{F#}</code> or
<code>\</code><code>chord{Bb minor}</code>.
<p>Two features of the coding are important:
<ul>
<li> <code>\</code><code>begingroup</code> in <code>\</code><code>chord</code> opens a group that is closed by
<code>\</code><code>endgroup</code> in <code>\</code><code>Xchord</code>; this group limits the change of
- category codes, which is the <em>raison d'&ecirc;tre</em> of the whole
+ category codes, which is the <em>raison d&rsquo;&ecirc;tre</em> of the whole
exercise.
-<li> Although <code>#</code> is active while <code>\</code><code>Xchord</code> is executed, it's
- <em>not</em> active when it's being defined, so that the use of <code>#1</code>
- doesn't require any special attention.
+<li> Although <code>#</code> is active while <code>\</code><code>Xchord</code> is executed, it&rsquo;s
+ <em>not</em> active when it&rsquo;s being defined, so that the use of <code>#1</code>
+ doesn&rsquo;t require any special attention.
</ul>
<p>Note that the technique used in such macros as <code>\</code><code>chord</code>, here, is
analagous to that used in such commands as <code>\</code><code>verb</code>; and, in just the
same way as <code>\</code><code>verb</code> (see
-"<a href="FAQ-verbwithin.html"><code>\</code><code>verb</code> doesn't work in arguments</a>"),
-<code>\</code><code>chord</code> won't work inside the argument of another command (the
+&ldquo;<a href="FAQ-verbwithin.html"><code>\</code><code>verb</code> doesn&rsquo;t work in arguments</a>&rdquo;),
+<code>\</code><code>chord</code> won&rsquo;t work inside the argument of another command (the
error messages, if they appear at all, will probably be rather odd).
<p><p><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=actinarg">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=actinarg</a>
</body>