Re: Layout: OptionalArgs
On 04/20/2011 12:19 PM, Jürgen Spitzmüller wrote: 2011/4/20 Diego Queiroz: Oh. You're right. Thanks. Anyway, I just noted that one can override this setting copying and pasting the "Opt" field as many times he/she wish. Isn't this a problem? Yes, the UI is far from ideal. I think we should make optional (and required) arguments part of the paragraph dialog (as we have already with the "longest label" input field, which is also an optional argument of the lists). We would lose the ability to format the content and embed insets this way, though (at least as long as we do not have a work area widget, as in the advances search dialog). I've done a little work on this and hope to complete it early in the 2.1 cycle. Conceptually, it doesn't seem that hard, and I would supposed a work area widget could be used. But that would be a bit harder. Richard
Re: Layout: OptionalArgs
2011/4/20 Diego Queiroz: > Oh. You're right. Thanks. > Anyway, I just noted that one can override this setting copying and pasting > the "Opt" field as many times he/she wish. > Isn't this a problem? Yes, the UI is far from ideal. I think we should make optional (and required) arguments part of the paragraph dialog (as we have already with the "longest label" input field, which is also an optional argument of the lists). We would lose the ability to format the content and embed insets this way, though (at least as long as we do not have a work area widget, as in the advances search dialog). Jürgen
Re: Layout: OptionalArgs
Oooops. I'm wrong again, sorry. It seems that one can override and insert "Opt" fields, but they aren't included in the source. --- Diego Queiroz 2011/4/20 Diego Queiroz > Oh. You're right. Thanks. > > Anyway, I just noted that one can override this setting copying and pasting > the "Opt" field as many times he/she wish. > Isn't this a problem? > > > Cheers, > --- > Diego Queiroz > > > > > 2011/4/20 Julien Rioux > >> On 20/04/2011 12:01 PM, Diego Queiroz wrote: >> >>> Yeah, I already realized that "Short title" is a terrible name (since it >>> only makes sense for captions, chapters, sections, and so on). >>> We need to change this in future releases... >>> >>> Anyway... >>> >>> So is "OptionalArgs" a boolean field? >>> I am asking this 'cuz the Customization documentation says "OptionalArgs >>> = >>> number of optional arguments", which means it is an integer field. >>> Is the documentation wrong or there is another behavior if I set >>> "OptionalArgs = 2"? >>> >>> --- >>> Diego Queiroz >>> >>> >> It is then possible to insert two "Short title" insets. Right? >> >> -- >> Julien >> >> >
Re: Layout: OptionalArgs
Oh. You're right. Thanks. Anyway, I just noted that one can override this setting copying and pasting the "Opt" field as many times he/she wish. Isn't this a problem? Cheers, --- Diego Queiroz 2011/4/20 Julien Rioux > On 20/04/2011 12:01 PM, Diego Queiroz wrote: > >> Yeah, I already realized that "Short title" is a terrible name (since it >> only makes sense for captions, chapters, sections, and so on). >> We need to change this in future releases... >> >> Anyway... >> >> So is "OptionalArgs" a boolean field? >> I am asking this 'cuz the Customization documentation says "OptionalArgs = >> number of optional arguments", which means it is an integer field. >> Is the documentation wrong or there is another behavior if I set >> "OptionalArgs = 2"? >> >> --- >> Diego Queiroz >> >> > It is then possible to insert two "Short title" insets. Right? > > -- > Julien > >
Re: Layout: OptionalArgs
2011/4/20 Diego Queiroz: > So is "OptionalArgs" a boolean field? > I am asking this 'cuz the Customization documentation says "OptionalArgs = > number of optional arguments", which means it is an integer field. > Is the documentation wrong or there is another behavior if I set > "OptionalArgs = 2"? It is an integer field. If you define OptionalArgs 2 you can insert two subsequent "short titles", which will then be output as two optional arguments to the macro, in the order you inserted it. Jürgen
Re: Layout: OptionalArgs
On 20/04/2011 12:01 PM, Diego Queiroz wrote: Yeah, I already realized that "Short title" is a terrible name (since it only makes sense for captions, chapters, sections, and so on). We need to change this in future releases... Anyway... So is "OptionalArgs" a boolean field? I am asking this 'cuz the Customization documentation says "OptionalArgs = number of optional arguments", which means it is an integer field. Is the documentation wrong or there is another behavior if I set "OptionalArgs = 2"? --- Diego Queiroz It is then possible to insert two "Short title" insets. Right? -- Julien
Re: Layout: OptionalArgs
Yeah, I already realized that "Short title" is a terrible name (since it only makes sense for captions, chapters, sections, and so on). We need to change this in future releases... Anyway... So is "OptionalArgs" a boolean field? I am asking this 'cuz the Customization documentation says "OptionalArgs = number of optional arguments", which means it is an integer field. Is the documentation wrong or there is another behavior if I set "OptionalArgs = 2"? --- Diego Queiroz 2011/4/20 Richard Heck > On 04/20/2011 03:42 AM, Jean-Marc Lasgouttes wrote: > >> Le 20/04/2011 02:23, Diego Queiroz a écrit : >> >>> When developing layouts, what the "OptionalArgs" command actually do? >>> >>> I mean, I already know what it represents (the number of optional >>> arguments of the command), but it appears to do nothing on LyX. >>> >> >> It enables the Insert>Short Title (bad name...) menu entry. >> >> ...which is what you use to insert optional arguments. > > rh > >
Re: Layout: OptionalArgs
On 04/20/2011 03:42 AM, Jean-Marc Lasgouttes wrote: Le 20/04/2011 02:23, Diego Queiroz a écrit : When developing layouts, what the "OptionalArgs" command actually do? I mean, I already know what it represents (the number of optional arguments of the command), but it appears to do nothing on LyX. It enables the Insert>Short Title (bad name...) menu entry. ...which is what you use to insert optional arguments. rh
Re: Layout: OptionalArgs
Le 20/04/2011 02:23, Diego Queiroz a écrit : When developing layouts, what the "OptionalArgs" command actually do? I mean, I already know what it represents (the number of optional arguments of the command), but it appears to do nothing on LyX. It enables the Insert>Short Title (bad name...) menu entry. JMarc
Layout: OptionalArgs
When developing layouts, what the "OptionalArgs" command actually do? I mean, I already know what it represents (the number of optional arguments of the command), but it appears to do nothing on LyX. Could someone confirm this? Regards, --- Diego Queiroz