summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-moren9.html
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-05-04 23:39:21 +0000
committerKarl Berry <karl@freefriends.org>2011-05-04 23:39:21 +0000
commit16bfcc69400c93c3d779a104107606ae122a7dbe (patch)
treee2456232be21108418db974f47ea118eec770469 /Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-moren9.html
parent9a8f00b89c2c1cd283f5fd0fb54959ef0690646f (diff)
FAQ-en 3.22 (4may11)
git-svn-id: svn://tug.org/texlive/trunk@22304 c570f23f-e606-0410-a88d-b1316a301751
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.html64
1 files changed, 0 insertions, 64 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
deleted file mode 100644
index 7b4d828f9cd..00000000000
--- a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-moren9.html
+++ /dev/null
@@ -1,64 +0,0 @@
-<head>
-<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&#8217;s command
-definition syntax:
-<blockquote>
-<pre>
-\def\blah#1#2 ... #9{&#60;macro body&#62;}
-</pre>
-</blockquote><p>
-is intrinsically limited to just 9 arguments. There&#8217;s no direct way
-round this: how would you express a 10th argument? &#8212; and ensure that
-the syntax didn&#8217;t gobble some other valid usage?
-<p/>If you really must have more than 9 arguments, the way to go is:
-<blockquote>
-<pre>
-\def\blah#1#2 ... #9{%
- \def\ArgI{{#1}}%
- \def\ArgII{{#2}}%
- ...
- \def\ArgIX{{#9}}%
- \BlahRelay
-}
-\def\BlahRelay#1#2#3{%
- % arguments 1-9 are now in
- % \ArgI-\ArgIX
- % arguments 10-12 are in
- % #1-#3
- &#60;macro body&#62;%
-}
-</pre>
-</blockquote><p>
-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&#8217;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
-write really quite sophisticated commands, whose invocation might look
-like:
-<blockquote>
-<pre>
-\flowerinstance{species=Primula veris,
- family=Primulaceae,
- location=Coldham's Common,
- locationtype=Common grazing land,
- date=1995/04/24,
- numplants=50,
- soiltype=alkaline
-}
-</pre>
-</blockquote><p>
-The merit of such verbosity is that it is self-explanatory: the typist
-doesn&#8217;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://mirror.ctan.org/macros/latex/required/graphics.zip">macros/latex/required/graphics</a> (or <a href="http://mirror.ctan.org/macros/latex/required/graphics/">browse the directory</a>); <a href="http://mirror.ctan.org/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>