Re: Environment arguments

2009-01-05 Thread Jean-Marc Lasgouttes
"G. Milde" writes: > However, LaTeX only accepts one optional argument, so maybe we can do > without any tricks. For example, the memoir class accepts two optional arguments for sectionning commands (one for toc and one for header). JMarc

Re: Environment arguments

2009-01-05 Thread G. Milde
On 4.01.09, Jean-Marc Lasgouttes wrote: > G. Milde a écrit : >>> ... For layouts accepting several optional >>> arguments, I guess we'll need to come up with some trick. >> For styles accepting several mandatory, or optional and mandatory arguments, >> too. > Yes, but we do not even support the

Re: Environment arguments

2009-01-03 Thread Jean-Marc Lasgouttes
G. Milde a écrit : Not beyond what I wrote... For layouts accepting several optional arguments, I guess we'll need to come up with some trick. For styles accepting several mandatory or optional and mandatory arguments, too. Yes, but we do not even support them yet. And there should be no ne

Re: Environment arguments

2009-01-03 Thread G. Milde
On 2.01.09, Jean-Marc Lasgouttes wrote: > Martin Vermeer writes: > >> IMO the name should be coded in the layout file. ... > >> 2/ when the menu item string contains %s, the menu code replaces this %s > >> with the message returned by above. ... > > Definitely. Any implementation ideas? > Not be

Re: Environment arguments

2009-01-02 Thread Jean-Marc Lasgouttes
Martin Vermeer writes: >> IMO the name should be coded in the layout file. >> >> Here is how it could work: >> >> 1/ when using getStatus(), the lfun validator uses FuncStatus::message to >> set a special string that could be >> - the name of the optional argument for the current layout >> -

Re: Environment arguments

2009-01-02 Thread Martin Vermeer
On Fri, Jan 02, 2009 at 02:36:42PM +0100, Jean-Marc Lasgouttes wrote: > Guenter Milde writes: > >> There was a discussion on the proper name for this, but I don't > >> remember anyone coming up with anything better. "Optional argument" is > >> correct but very LaTeX centric and not clear to the un

Re: Environment arguments

2009-01-02 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > Would that make sense? yes. Jürgen

Re: Environment arguments

2009-01-02 Thread Jean-Marc Lasgouttes
Guenter Milde writes: >> There was a discussion on the proper name for this, but I don't >> remember anyone coming up with anything better. "Optional argument" is >> correct but very LaTeX centric and not clear to the uninitiated. > > "LaTeX argument" seems the best choice to me. IMO the name sh

Re: Environment arguments (was Re: Developers Roadmap for 2.0)

2009-01-01 Thread Guenter Milde
On 2008-12-30, Martin Vermeer wrote: > On Mon, Dec 29, 2008 at 11:20:23PM +, Guenter Milde wrote: >> On 2008-12-12, rgheck wrote in gmane.editors.lyx.devel: >> > Jean-Marc Lasgouttes wrote: >> >> rgheck writes: >> >>> Support for optional arguments in list environments is weird. >> You can

Re: Environment arguments (was Re: Developers Roadmap for 2.0)

2008-12-30 Thread rgheck
Guenter Milde wrote: On 2008-12-12, rgheck wrote in gmane.editors.lyx.devel: Really? It seems as if it'd be more useful to have the optional argument to \item. At least, it'd be more useful for me. Really? You can use ERT to give an (optional or mandatory) arg to an \item but you need

Re: Environment arguments (was Re: Developers Roadmap for 2.0)

2008-12-30 Thread Martin Vermeer
On Mon, Dec 29, 2008 at 11:20:23PM +, Guenter Milde wrote: > On 2008-12-12, rgheck wrote in gmane.editors.lyx.devel: > > Jean-Marc Lasgouttes wrote: > >> rgheck writes: > > >>> Yes, of course. But there are problems even there. Support for > >>> optional arguments in list environments is weir

Environment arguments (was Re: Developers Roadmap for 2.0)

2008-12-29 Thread Guenter Milde
On 2008-12-12, rgheck wrote in gmane.editors.lyx.devel: > Jean-Marc Lasgouttes wrote: >> rgheck writes: >>> Yes, of course. But there are problems even there. Support for >>> optional arguments in list environments is weird. If you put one in >>> for the first item, it becomes the optional argume