| 1 |
|
| 2 |
The xargs package |
| 3 |
|
| 4 |
Defining commands with many optional arguments made easy |
| 5 |
|
| 6 |
Manuel P\'egouri\'e-Gonnard <[email protected]> |
| 7 |
|
| 8 |
|
| 9 |
Presentation |
| 10 |
------------ |
| 11 |
|
| 12 |
Defining commands with an optional argument is easy in LaTeXe. There is, |
| 13 |
however, two limitations: only one argument can be optional and it must |
| 14 |
be the first one. The xargs package provide extended variants of |
| 15 |
\newcommand & friends, for which these limitations no longer hold. It |
| 16 |
allows to control what happens with many consecutive optional arguments. |
| 17 |
It also provide a way of making the definition global. |
| 18 |
|
| 19 |
Some features of xargs are similar to those provided by the experimental |
| 20 |
`xparse' package, which also allows more flexible argument syntaxes, |
| 21 |
though the approach and syntax are different. However, xargs is not |
| 22 |
experimental, so I hope it can be useful while waiting for a stable |
| 23 |
LaTeX3 release. |
| 24 |
|
| 25 |
Contents |
| 26 |
-------- |
| 27 |
|
| 28 |
xargs.sty: the package itself |
| 29 |
xargs.pdf: the (English) documentation and documented code |
| 30 |
xargs-fr.pdf: the French documentation |
| 31 |
|
| 32 |
xargs.dtx: source for both documentations and package |
| 33 |
|
| 34 |
Version info |
| 35 |
------------ |
| 36 |
|
| 37 |
2007-10-20 v1.0 First release |
| 38 |
2008-03-08 v1.09 Added the usedefault and addprefix keys, not |
| 39 |
documented yet... |
| 40 |
2008-03-22 v1.1 Updated the documentation and fixed a bug in |
| 41 |
\DeclareRobustCommandx, introduced in v1.09. |
| 42 |
|
| 43 |
License |
| 44 |
------- |
| 45 |
|
| 46 |
This material is subject to the LaTeX Project Public License. See |
| 47 |
http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html for the |
| 48 |
details of that license. |
| 49 |
|