>>>>> "Amir" == Amir Karger <[EMAIL PROTECTED]> writes:
Amir> On Mon, May 10, 1999 at 08:46:28AM +0800, Rod Pinna wrote:
>> On Fri, 7 May 1999, Amir Karger wrote:
>>
>> I agree, that the way I've handled the use of title, author and so
>> on *isn't* the neatest. However, there is at least one reason for
>> doing it the way I have. The Elsevier style lets you use the
>> \author command in a couple of forms, either \author{...} or
>> \author[tag]{...}. Is there a way of using the pull down commands
>> that lets a person access this?
>>
>> I suppose one way would be to provide the \author{...} form in the
>> pull-down, and let the user TeX in the \author[tag]{...} form if
>> they want it.
Amir> Yup. I fear that support for optional arguments in LyX isn't
Amir> very good. It seems like usually either an optional argument
Amir> isn't supported at all, or one specific optional argument may be
Amir> supported (e.g., ShortFoilHead in the Foils textclass), but that
Amir> optional arg is hardcoded.
Indeed. This is a pain for many things, including optional arguments
in sections/captions
Amir> I could have sworn you used to be able to put an optional
Amir> argument in tex mode, but now it creates something like
Amir> \author{[foo]blah} which isn't very useful.
The trick only works for environments, where it will get you
\begin{foo}[bar]
\end{foo}
which is usually fine.
Amir> Devvies, is there any way around this? If not, the suggestion
Amir> you make, of requiring ERT for the optional argument style, may
Amir> be the best we can do. Are people very likely to use the
Amir> optional arguments? If not, and maybe even if so, you're still
Amir> getting a substantial reduction of ERT.
Unfortunately, I cannot think of a good solution.
>> > (a) with TeX hacking, you might be able to do something like
>> John's slides > layout does.
>>
>> I'll have a look, but I doubt my TeX is up to it.
Amir> That's why I was suggesting our local TeX gurus might want to
Amir> take a swing at it. Unfortunately, they seem to be
Amir> missing. Well, if the other methods work, they'd probably be
Amir> nicer anyway.
Rod, can you describe the typical structure of one of those documents?
If it is not too weird, I might be able to suggest a mildly twisted
solution.
JMarc