Hi!
I have implemented some experimental support for xargs to support
multiple optional parameters of math macros. The soon to be released
version 1.1 of xargs by Manuel Pégourié-Gonnard will have the needed
support for LyX macro semantics.
The current trunk version of LyX includes a \newlyxcommand
implementation, done by myself, in the preamble of documents which
need this. Of course this is not optimal because LyX is not supposed
to deliver bigger portions of TeX code in every exported TeX file. So
uploading this to ctan could be an option.
But in either case, the problem will be that neither xargs, nor
newlyxcommand are available in today's TeX distributions. What is the
policy for those cases? I saw the lib/tex directory with some files.
Would putting newlyxcommand there be an option? Or should LyX just
complain if it is not installed?
Stefan
[1] http://texcatalogue.sarovar.org/entries/xargs.html