Re: Elsart layout

2003-02-28 Thread Vaclav Smidl
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



Re: Elsart layout

2003-02-27 Thread Rod Pinna

Vaclav,

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. 

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.

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

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




Re: Elsart layout

2003-02-28 Thread Jean-Marc Lasgouttes
> "Vaclav" == Vaclav Smidl <[EMAIL PROTECTED]> writes:

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

What works is "Author Address". Actually, you can use
  Style "Author Address"
instead of
  Style Author_Address
which is a kludge we should remove from the source (from the ancient
times when the quotes syntax did not work.

JMarc



Re: Elsart layout: How to squash citations [1,2,3,4] into [1-4] ?

2003-02-24 Thread Angus Leeming
Rob Lahaye wrote: 
> I'm using the new Elsart layout, though I don't know if that matters.
> I have trouble to squash multiple citations, e.g. I get [1,2,3,4,5,6]
> instead of [1-6]. Any idea what I can do about that?

Do you think that this is a question for lyx-devel or lyx-users?

If not using natbib, add \usepackage{cite} to your preamble.
If you are using natbib, then you'll have to edit the generated LaTeX file 
by hand:
\usepackage[numbers,sort&compress]{natbib}

-- 
Angus



Re: Elsart layout: How to squash citations [1,2,3,4] into [1-4] ?

2003-02-24 Thread Dekel Tsur
On Mon, Feb 24, 2003 at 01:12:32PM +, Angus Leeming wrote:
> Rob Lahaye wrote: 
> > I'm using the new Elsart layout, though I don't know if that matters.
> > I have trouble to squash multiple citations, e.g. I get [1,2,3,4,5,6]
> > instead of [1-6]. Any idea what I can do about that?
> 
> If you are using natbib, then you'll have to edit the generated LaTeX file 
> by hand:
> \usepackage[numbers,sort&compress]{natbib}

Easier solution: to add 'sort&compress' to the global document options
(in the document dialog).


Re: Elsart layout: How to squash citations [1,2,3,4] into [1-4] ?

2003-02-24 Thread Rob Lahaye
Dekel Tsur wrote:
> On Mon, Feb 24, 2003 at 01:12:32PM +, Angus Leeming wrote:
> 
>>Rob Lahaye wrote: 
>>
>>>I'm using the new Elsart layout, though I don't know if that matters.
>>>I have trouble to squash multiple citations, e.g. I get [1,2,3,4,5,6]
>>>instead of [1-6]. Any idea what I can do about that?
>>
>>If you are using natbib, then you'll have to edit the generated LaTeX file 
>>by hand:
>>\usepackage[numbers,sort&compress]{natbib}
> 
> 
> Easier solution: to add 'sort&compress' to the global document options
> (in the document dialog).

YES! Thanks,

Rob.



Re: Elsart layout: How to squash citations [1,2,3,4] into [1-4] ?

2003-02-24 Thread Rod Pinna
If it is for an Elseveir journal, then don't. Use the Elseveir bst file,
from their website, and leave them as is. The idea is that Elseveir will
do what they need to your article at their end.

My understanding, from comp.text.tex, is that they wil probably end up
retyping it anyway.

Rod


On Mon, 24 Feb 2003, Rob Lahaye wrote:

> 
> Hi all,
> 
> I'm using the new Elsart layout, though I don't know if that matters.
> I have trouble to squash multiple citations, e.g. I get [1,2,3,4,5,6]
> instead of [1-6]. Any idea what I can do about that?
> 
> I'm using current CVS.
> 
> Regards,
> Rob.
> 
> 

_
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