summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-spinmacro.html
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-doc/doc/english/FAQ-en/html/FAQ-spinmacro.html')
-rw-r--r--Master/texmf-doc/doc/english/FAQ-en/html/FAQ-spinmacro.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-spinmacro.html b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-spinmacro.html
index 1f75263bada..9dc949a38a4 100644
--- a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-spinmacro.html
+++ b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-spinmacro.html
@@ -2,7 +2,7 @@
<title>UK TeX FAQ -- question label spinmacro</title>
</head><body>
<h3>Spaces in macros</h3>
-<p>It&rsquo;s very easy to write macros that produce space in the typeset
+<p/>It&rsquo;s very easy to write macros that produce space in the typeset
output where it&rsquo;s neither desired nor expected. Spaces introduced by
macros are particularly insidious because they don&rsquo;t amalgamate with
spaces around the macro (unlike consecutive spaces that you
@@ -10,14 +10,14 @@ type), so your output can have a single bloated space that proves
to be made up of two or even more spaces that haven&rsquo;t amalgamated.
And of course, your output can also have a space where none was wanted
at all.
-<p>Spaces are produced, inside a macro as elsewhere, by space or tab
+<p/>Spaces are produced, inside a macro as elsewhere, by space or tab
characters, or by end-of-line characters. There are two basic rules
to remember when writing a macro: first, the rules for ignoring spaces
when you&rsquo;re typing macros are just the same as the rules that apply
when you&rsquo;re typing ordinary text, and second, rules for ignoring
spaces do <em>not</em> apply to spaces produced while a macro is being
obeyed (&ldquo;expanded&rdquo;).
-<p>Spaces are ignored in vertical mode (between paragraphs), at the
+<p/>Spaces are ignored in vertical mode (between paragraphs), at the
beginning of a line, and after a command name. Since sequences of
spaces are collapsed into one, it &lsquo;feels as if&rsquo; spaces are ignored if
they follow another space. Space can have syntactic meaning after
@@ -26,7 +26,7 @@ certain sorts of non-braced arguments (e.g., <em>count</em> and
control words (e.g., in <code>\</code><code>hbox</code> <code>to</code>, so again we have instances
where it &lsquo;feels as if&rsquo; spaces are being ignored when they&rsquo;re merely
working quietly for their living.
-<p>Consider the following macro, fairly faithfully adapted from one that
+<p/>Consider the following macro, fairly faithfully adapted from one that
appeared on <i>comp.text.tex</i>:
<blockquote>
@@ -59,7 +59,7 @@ mandatory argument of <code>\</code><code>makebox</code> and the space immediate
same argument. He had written his macro in that way to emphasise the
meaning of its various parts; unfortunately the meaning was rather
lost in the problems the macro caused.
-<p>The principal technique for suppressing spaces is the use of
+<p/>The principal technique for suppressing spaces is the use of
<code>%</code> characters: everything after a
<code>%</code> is ignored, even the end of line itself (so
that not even the end of line can contribute an unwanted space). The
@@ -100,10 +100,10 @@ spaces:
Beware of the (common) temptation to place a space <em>before</em> a
<code>%</code> character: if you do this you might as well omit
the <code>%</code> altogether.
-<p>In &ldquo;real life&rdquo;, of course, the spaces that appear in macros are far
+<p/>In &ldquo;real life&rdquo;, of course, the spaces that appear in macros are far
more cryptic than those in the example above. The most common spaces
arise from unprotected line ends, and this is an error that
occasionally appears even in macros written by the most accomplished
programmers.
-<p><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=spinmacro">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=spinmacro</a>
+<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=spinmacro">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=spinmacro</a>
</body>