diff options
Diffstat (limited to 'Master/texmf-doc/doc/english/FAQ-en/html/FAQ-csname.html')
-rw-r--r-- | Master/texmf-doc/doc/english/FAQ-en/html/FAQ-csname.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-csname.html b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-csname.html index abf7849cbbb..d2abced359a 100644 --- a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-csname.html +++ b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-csname.html @@ -2,12 +2,12 @@ <title>UK TeX FAQ -- question label csname</title> </head><body> <h3>Defining a macro from an argument</h3> -<p>It’s common to want a command to create another command: often one +<p/>It’s common to want a command to create another command: often one wants the new command’s name to derive from an argument. LaTeX does this all the time: for example, <code>\</code><code>newenvironment</code> creates start- and end-environment commands whose names are derived from the name of the environment command. -<p>The (seemingly) obvious approach: +<p/>The (seemingly) obvious approach: <blockquote> <pre> \def\relay#1#2{\def\#1{#2}} @@ -27,11 +27,11 @@ above should read: </blockquote><p> With this definition, <code>\</code><code>relay{blah}{bleah}</code> is equivalent to <code>\</code><code>def</code><code>\</code><code>blah{bleah}</code>. -<p>Note that the definition of <code>\</code><code>relay</code> omits the braces round the +<p/>Note that the definition of <code>\</code><code>relay</code> omits the braces round the ‘command name’ in the <code>\</code><code>newcommand</code> it executes. This is because they’re not necessary (in fact they seldom are), and in this circumstance they make the macro code slightly more tedious. -<p>The name created need not (of course) be <em>just</em> the argument: +<p/>The name created need not (of course) be <em>just</em> the argument: <blockquote> <pre> @@ -53,5 +53,5 @@ With commands </pre> </blockquote><p> these ‘races’ could behave a bit like LaTeX environments. -<p><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=csname">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=csname</a> +<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=csname">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=csname</a> </body> |