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.
Yup. I fear that support for optional arguments in LyX isn't very good. It
seems like usually either an optional argument isn't supported at all, or
one specific optional argument may be supported (e.g., ShortFoilHead in
the Foils textclass), but that optional arg is hardcoded.
I could have sworn you used to be able to put an optional argument in tex
mode, but now it creates something like \author{[foo]blah} which isn't very
useful.
Devvies, is there any way around this? If not, the suggestion you make, of
requiring ERT for the optional argument style, may be the best we can do.
Are people very likely to use the optional arguments? If not, and maybe even
if so, you're still getting a substantial reduction of ERT.
> Thanks for the note on the documentation, I'll change that. Which means
> I'll have to look at CVS I suupose.
The "How to use CVS" link in the navigation bar at devel.lyx.org ought to
tell you everything you need to know.
> > - If you write "LaTeX" and "LyX" (using that exact capitalization), then LyX
> > will automatically turn LaTeX into \LaTeX and LyX into the corresponding
> > thing. And you don't even have to put a "\ " afterwards!
>
> Well, never knew that :)
It's a slightly silly hardcoded LyX feature.
> Yeah, that should work. I considered that, but in the end I decided it was
> easier to copy the stuff in. There is one reason in favour of it, in that
> the Elsevier style hasn't been updated, as far as I can see, for quite a
> while. Linking it to the AMS style is fine at the moment, but there isn't
> any reason to assume that if the AMS style changed the Elsevier one would
> as well. Also, the acknowledgement format is different for Elsevier.
I think if AMS style changes, a lot of people will be in a lot of trouble. I
think there would have to be some sort of "oldams" style in that case, and
we would just make elsart hang off of that.
> > (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.
That's why I was suggesting our local TeX gurus might want to take a swing
at it. Unfortunately, they seem to be missing. Well, if the other methods
work, they'd probably be nicer anyway.
> > (d) you could put \begin{frontmatter} and \end{frontmatter} in tex mode, but
> > use "normal" layouts for title, author, etc. I think the amount of ERT is
> > much less this way.
>
> This would be the quickest fix, so I should probably implement it first.
> Though any suggestions about how to get around the \author[tag]{...}
> thing?
No :( see above. But a template with a Note (as in Insert->Note) could
probably remove a lot of confusion.
-Amir