diff options
Diffstat (limited to 'Master/texmf-doc/doc/english/FAQ-en/html/FAQ-twooptarg.html')
-rw-r--r-- | Master/texmf-doc/doc/english/FAQ-en/html/FAQ-twooptarg.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-twooptarg.html b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-twooptarg.html index 0284486d9c6..16c3aae2ed0 100644 --- a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-twooptarg.html +++ b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-twooptarg.html @@ -2,8 +2,8 @@ <title>UK TeX FAQ -- question label twooptarg</title> </head><body> <h3>More than one optional argument</h3> -<p>If you've already read -"<a href="FAQ-moren9.html">breaking the 9-argument limit</a>". +<p>If you’ve already read +“<a href="FAQ-moren9.html">breaking the 9-argument limit</a>”. you can probably guess the solution to this problem: command relaying. <p>LaTeX allows commands with a single optional argument thus: <pre> @@ -29,24 +29,24 @@ technique, as follows: </pre> Of course, <code>\</code><code>BlahRelay</code> may have as many mandatory arguments as are allowed, after allowance for the one taken up with its own -optional argument - that is, 8. +optional argument — that is, 8. <p>Variants of <code>\</code><code>newcommand</code> (and friends), with names like <code>\</code><code>newcommandtwoopt</code>, are available in the <i>twoopt</i> package. -However, if you can, it's probably better to learn to write the commands -yourself, just to see why they're not even a good idea from the +However, if you can, it’s probably better to learn to write the commands +yourself, just to see why they’re not even a good idea from the programming point of view. -<p>A command with two optional arguments strains the limit of what's +<p>A command with two optional arguments strains the limit of what’s sensible: obviously you can extend the technique to provide as many optional arguments as your fevered imagination can summon. However, -see the comments on the use of the <i>keyval</i> package, again in -"<a href="FAQ-moren9.html">breaking the 9-argument limit</a>". -which offer an alternative way forward. +see the comments on the use of the <i>keyval</i> package, in +“<a href="FAQ-moren9.html">breaking the 9-argument limit</a>”, +which offers an alternative way forward. <p>If you must, however, consider the <i>optparams</i> package; provides a <code>\</code><code>optparams</code> command that you use as an intermediate in defining commands with up to nine optional arguments. The documentation shows examples of commands with four optional arguments (and this from an author who has his own key-value package!). -<p>An alternative approach is offered by Scott Pakin's +<p>An alternative approach is offered by Scott Pakin’s <i>newcommand</i> program, which takes a command name and a definition of a set of command arguments (in a fairly readily-understood language), and emits (La)TeX macros which enable |