diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-moren9.html')
-rw-r--r-- | Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-moren9.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-moren9.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-moren9.html index 0606222fef5..a798bfe9ab6 100644 --- a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-moren9.html +++ b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-moren9.html @@ -2,16 +2,16 @@ <title>UK TeX FAQ -- question label moren9</title> </head><body> <h3>How to break the 9-argument limit</h3> -<p/>If you think about it, you will realise that Knuth’s command +<p/>If you think about it, you will realise that Knuth’s command definition syntax: <blockquote> <pre> -\def\blah#1#2 ... #9{<macro body>} +\def\blah#1#2 ... #9{<macro body>} </pre> </blockquote><p> -is intrinsically limited to just 9 arguments. There’s no direct way -round this: how would you express a 10th argument? — and ensure that -the syntax didn’t gobble some other valid usage? +is intrinsically limited to just 9 arguments. There’s no direct way +round this: how would you express a 10th argument? — and ensure that +the syntax didn’t gobble some other valid usage? <p/>If you really must have more than 9 arguments, the way to go is: <blockquote> <pre> @@ -27,7 +27,7 @@ the syntax didn’t gobble some other valid usage? % \ArgI-\ArgIX % arguments 10-12 are in % #1-#3 - <macro body>% + <macro body>% } </pre> </blockquote><p> @@ -35,7 +35,7 @@ This technique is easily extendible by concert pianists of the TeX keyboard, but is really hard to recommend. <p/>LaTeX users have the small convenience of merely giving a number of arguments in the <code>\</code><code>newcommand</code> that defines each part of the -relaying mechanism: Knuth’s restriction applies to <code>\</code><code>newcommand</code> +relaying mechanism: Knuth’s restriction applies to <code>\</code><code>newcommand</code> just as it does to <code>\</code><code>def</code>. However, LaTeX users also have the way out of such barbarous command syntax: the <i>keyval</i> package. With <i>keyval</i>, and a bit of programming, one can @@ -54,11 +54,11 @@ like: </pre> </blockquote><p> The merit of such verbosity is that it is self-explanatory: the typist -doesn’t have to remember that argument twelve is <code>soiltype</code>, and so +doesn’t have to remember that argument twelve is <code>soiltype</code>, and so on: the commands may be copied from field notes quickly and accurately. <dl> -<dt><tt><i>keyval.sty</i></tt><dd>Distributed as part of <a href="http://www.tex.ac.uk/tex-archive/macros/latex/required/graphics.zip">macros/latex/required/graphics</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/required/graphics/">browse the directory</a>) +<dt><tt><i>keyval.sty</i></tt><dd>Distributed as part of <a href="http://www.tex.ac.uk/tex-archive/macros/latex/required/graphics.zip">macros/latex/required/graphics</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/required/graphics/">browse the directory</a>); <a href="http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/keyval.html">catalogue entry</a> </dl> <p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=moren9">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=moren9</a> </body> |