Settings Help
Comprehensive TeX Archive Network
Home Upload Browse

Direc­tory tex-archive/macros/latex/contrib/xargs

                               The xargs package

            Defining commands with many optional arguments made easy

               Manuel P\'egouri\'e-Gonnard <>


Defining commands with an optional argument is easy in LaTeXe. There is,
however, two limitations: only one argument can be optional and it must
be the first one. The xargs package provide extended variants of
\newcommand & friends, for which these limitations no longer hold. It
allows to control what happens with many consecutive optional arguments.
It also provide a way of making the definition global.

Some features of xargs are similar to those provided by the experimental
`xparse' package, which also allows more flexible argument syntaxes,
though the approach and syntax are different.  However, xargs is not
experimental, so I hope it can be useful while waiting for a stable
LaTeX3 release.


xargs.sty:      the package itself
xargs.pdf:      the (English) documentation and documented code
xargs-fr.pdf:   the French documentation

xargs.dtx:      source for both documentations and package

Version info

2007-10-20  v1.0    First release
2008-03-08  v1.09   Added the usedefault and addprefix keys, not
                    documented yet...
2008-03-22  v1.1    Updated the documentation and fixed a bug in
                    \DeclareRobustCommandx, introduced in v1.09.


This material is subject to the LaTeX Project Public License. See for the
details of that license.


Name Size Date Notes
README 1618 2008-03-23 01:11:29
xargs-fr.pdf 78571 2008-03-23 01:11:29
xargs.dtx 60806 2008-03-23 01:11:29
xargs.pdf 150220 2008-03-23 01:11:29
xargs.sty 12403 2008-03-23 01:11:29

Down­load the com­plete con­tents of this di­rec­tory in one zip archive (211.1k).

xargs – De­fine com­mands with many op­tional ar­gu­ments

The pack­age pro­vides ex­tended ver­sions of \new­com­mand and re­lated LaTeX com­mands, which al­low easy and ro­bust def­i­ni­tion of macros with many op­tional ar­gu­ments, us­ing a clear and sim­ple xkey­val-style syn­tax.

Li­censeThe LaTeX Project Public Li­cense
Main­tainerManuel Pé­gourié-Gon­nard
Con­tained inTeXLive as xargs
MiKTeX as xargs
Topics work done for the project to up­grade LaTeX
sup­port for de­vel­op­ment of (La)TeX macros
Guest Book Sitemap Contact 2014-04-17 05:53 CEST