Thanks for trying this. 

> Just had a further look, and I'm guessing that you're trying to get output
> as in example 2 of instraut.ps, where the authors are one after the other,
> followed by addresses? I have to admit, this isn't a format I've ever had
> to use, so I didn't think of it.

You are right, I forgot to mention it. 
As you can not have parameters in LyX layouts, I modified the layout: 

Style Author1
  CopyStyle     Author
  LatexParam    [inst1]
End
        
Style AuthorAddress1
  CopyStyle     AuthorAddress
  LatexParam    [inst1]
End

(I had to change Author_Address to AuthorAddress. It does not work with 
CopyStyle! lyx announce it does not know Author_Address but 'Author Address'
which does not work eather. AuthorAddress is safe enough.)

Same for the second author. This does what I want with the flaw of inserting 
too many newlines after the \author and \address commands.

>
> As to the question, I don't know. I suspect it may need some internal
> work, but others on lyx-devel are better able to comment.

Yeah. It seems to me that each Style = new paragraph.
Configurable options are: textclass, classoption, paragraph layouts.
But there is probably no way to customize a text property like \emph which is 
the way how \author is used in elsevier's style.

We are then trying to describe the Author field in Elsevier's style as 
"paragraph that is actualy not a paragraph". :)

>
> It can, of course, be done using ert, but you may well not find that a
> suitable answer.

I tried to use ERT but I had to define
Style StandardInTitle
  CopyStyle     Standard
  InTitle       1
End
because of \frontmatter.

Well, it is a way around, but not too nice though.

Thanks,

Vasek

>
> Rod
>
> On Fri, 28 Feb 2003, Rod Pinna wrote:
> > Vaclav
> >
> > Thanks for having a look at this, I'm not an expert at either lyx or the
> > elsevier class.
> >
> > I've just done a check, and I'm not sure I see what you mean. Latexing
> > the outputted tex file, and either including the extra newlines or not
> > seems to lead to the same result. BTW, I'm trying to reproduce the out as
> > in the first example of the Elsevier instructions. The second example
> > uses a different format.
> >
> > I've attached the tex output, with a space between the first two authors,
> > and one betweent the second and last. The spacing in the dvi seems the
> > same.
> >
> > Rod
> >
> > On Thu, 27 Feb 2003, Vaclav Smidl wrote:
> > > Hi,
> > > thanks for the link. I followed the discussion and understood that the
> > > latest version is probably CVS. I downloaded BRANCH_1_3_x and it seems
> > > to work quite well.
> > > However, using multiple authors gives strange results.
> > > LyX exports them as
> > > \author{author1}
> > >
> > >
> > > \author{author2}
> > >
> > > which is not tolerable for elsart.cls -- it inserts \parsep inbetween.
> > > If I remove newlines from exported .tex, everything works as expected.
> > > Is there any command in LyX that prevent exporting so many newlines
> > > after the Command?
> > >
> > > Thanks,
> > >
> > > Vasek
> > >
> > > On Wednesday 26 of February 2003 00:16, Rod Pinna wrote:
> > > > Vaclav,
> > > >
> > > > Also, have a look at
> > > >
> > > > http://www.mail-archive.com/[EMAIL PROTECTED]/msg52858.html
> > > >
> > > > for a patch to 1.3.0 that is the latest version of elsart.
> > > >
> > > > Rod
> > > >
> > > > On Tue, 25 Feb 2003, I Wayan Warmada wrote:
> > > > > On Tue, 25 Feb 2003, Vaclav Smidl wrote:
> > > > > | I have to write an article using elsart.cls. Is there a LyX
> > > > > | layout file for this class?
> > > > > |
> > > > > | There is a few notes on the web about elsart.layout but it is not
> > > > > | part of LyX distro and I can not find it in any contrib
> > > > > | directory.
> > > > >
> > > > > I have this layout...
> > > > >
> > > > > with the header...
> > > > >
> > > > > # Version 1.0   19990506 R. Pinna Inital version
> > > > > # modified 2002-04-02   Herbert Voss <[EMAIL PROTECTED]>
> > > > >
> > > > > but I have never been using. Let me know if this is the layout that
> > > > > you need.
> > > > >
> > > > > Wayan
> > > >
> > > > _________________________________________________________________
> > > > rod   | "Beneath the waves, the waves / That's where I will be /
> > > >
> > > >       |     I'm going to see the cow beneath the sea."
> > > >       |                 They Might Be Giants, Lincoln
> >
> > _________________________________________________________________
> > rod   | "Beneath the waves, the waves / That's where I will be /
> >
> >       |     I'm going to see the cow beneath the sea."
> >       |             They Might Be Giants, Lincoln
>
> _________________________________________________________________
> rod   | "Beneath the waves, the waves / That's where I will be /
>
>       |     I'm going to see the cow beneath the sea."
>       |               They Might Be Giants, Lincoln

Reply via email to