Re: natbib / apalike full author list

2008-01-08 Thread Éamonn Linehan
Thanks for your help. [rgheck - send me your name if you like a credit added
to the bst files modification histroy. I will be sharing this style once it
is complete] That did exactly what I wanted. I haven't managed to figure out
the Tex syntax yet. I also have the problem that the APA style requires the
second line of the reference to be indented (see link below for example) but
the 'apa-good' APA style for natbib that I am using does not do that. Could
that be easily added? The styles 'apalike' and 'apacite' achieve this but
don't work properly with natbib. The bst file I am using can be downloaded
from http://www.dsg.cs.tcd.ie/~linehane/lyx/ Any help would be greatly
appreciated.

http://owl.english.purdue.edu/owl/resource/560/06/

- Éamonn

On Jan 7, 2008 4:48 AM, rgheck [EMAIL PROTECTED] wrote:

 Try what's below:
  FUNCTION {book}
  { output.bibitem
author empty$
  { format.editors author and editor output.check
editor format.key output
add.blank
  }
  { format.authors output.nonnull
crossref missing$
  { author and editor editor either.or.check }
  'skip$
if$
  }
if$
format.date year output.check
date.block
format.btitle title output.check
edition missing$
  'skip$
  {   ( format.edition * ) * output }
if$
new.block
crossref missing$
  { format.bvolume output
new.block
format.number.series output
new.sentence
format.publisher.address output
  }
  {
format.book.crossref output.nonnull
  }
if$
new.block
format.note output
fin.entry
write.url
  }
 
 
 I'm not sure exactly what you'd want to do with the volume, series, etc,
 info, but this should get you what you wanted. If not, let me know, and
 I'll have to debug it.

 rh





-- 
___
Éamonn Linehan,
Distributed Systems Group,
F.35 Computer Science Dept.,
Trinity College,
Dublin 2.
Phone: 00353 1 8961543
Email: [EMAIL PROTECTED]
Web:   https://www.cs.tcd.ie/Eamonn.Linehan


Re: natbib / apalike full author list [RESOLVED]

2008-01-08 Thread Éamonn Linehan
To add the indent to citations I added the following to my style.

% (from apalike.sty)
% Set length of hanging indentation for bibliography entries.
%
\newlength{\bibhang}
\setlength{\bibhang}{2em}

% Indent second and subsequent lines of bibliographic entries. Stolen
% from openbib.sty: \newblock is set to {}.

\newdimen\bibindent
\bibindent=1.5em
[EMAIL PROTECTED]
   [EMAIL PROTECTED]
 {\newcommand{\refname}{References}}%
 {\newcommand{\refname}{Bibliography}}%
   }%
   {}%
[EMAIL PROTECTED]
 [EMAIL PROTECTED]
   {\uppercase{\refname}}{\uppercase{\refname}}}\list
   {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}
   \leftmargin\labelwidth
   \advance\leftmargin\labelsep
   \advance\leftmargin\bibindent
   \itemindent -\bibindent
   \listparindent \itemindent
   \parsep \z@
   \usecounter{enumi}}
   \def\newblock{}
   \sloppy
   \sfcode`\.=1000\relax}}
 [EMAIL PROTECTED]
   {\uppercase{\refname}}{\uppercase{\refname}}}\list
   {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}
   \leftmargin\labelwidth
   \advance\leftmargin\labelsep
   \advance\leftmargin\bibindent
   \itemindent -\bibindent
   \listparindent \itemindent
   \parsep \z@
   \usecounter{enumi}}
   \def\newblock{}
   \sloppy
   \sfcode`\.=1000\relax}}




On Jan 8, 2008 10:49 AM, Éamonn Linehan [EMAIL PROTECTED] wrote:

 Thanks for your help. [rgheck - send me your name if you like a credit
 added to the bst files modification histroy. I will be sharing this style
 once it is complete] That did exactly what I wanted. I haven't managed to
 figure out the Tex syntax yet. I also have the problem that the APA style
 requires the second line of the reference to be indented (see link below for
 example) but the 'apa-good' APA style for natbib that I am using does not do
 that. Could that be easily added? The styles 'apalike' and 'apacite' achieve
 this but don't work properly with natbib. The bst file I am using can be
 downloaded from 
 http://www.dsg.cs.tcd.ie/~linehane/lyx/http://www.dsg.cs.tcd.ie/%7Elinehane/lyx/Any
  help would be greatly appreciated.

 http://owl.english.purdue.edu/owl/resource/560/06/

 - Éamonn


 On Jan 7, 2008 4:48 AM, rgheck [EMAIL PROTECTED] wrote:

  Try what's below:
   FUNCTION {book}
   { output.bibitem
 author empty$
   { format.editors author and editor output.check
 editor format.key output
 add.blank
   }
   { format.authors output.nonnull
 crossref missing$
   { author and editor editor either.or.check }
   'skip$
 if$
   }
 if$
 format.date year output.check
 date.block
 format.btitle title output.check
 edition missing$
   'skip$
   {   ( format.edition * ) * output }
 if$
 new.block
 crossref missing$
   { format.bvolume output
 new.block
 format.number.series output
 new.sentence
 format.publisher.address output
   }
   {
 format.book.crossref output.nonnull
   }
 if$
 new.block
 format.note output
 fin.entry
 write.url
   }
  
  
  I'm not sure exactly what you'd want to do with the volume, series, etc,
  info, but this should get you what you wanted. If not, let me know, and
  I'll have to debug it.
 
  rh
 
 
 


 --
 ___
 Éamonn Linehan,
 Distributed Systems Group,
 F.35 Computer Science Dept.,
 Trinity College,
 Dublin 2.
 Phone: 00353 1 8961543
 Email: [EMAIL PROTECTED]
 Web:   https://www.cs.tcd.ie/Eamonn.Linehan




-- 
___
Éamonn Linehan,
Distributed Systems Group,
F.35 Computer Science Dept.,
Trinity College,
Dublin 2.
Phone: 00353 1 8961543
Email: [EMAIL PROTECTED]
Web:   https://www.cs.tcd.ie/Eamonn.Linehan


Re: natbib / apalike full author list

2008-01-08 Thread rgheck

Éamonn Linehan wrote:
Thanks for your help. [rgheck - send me your name if you like a credit 
added to the bst files modification histroy. I will be sharing this 
style once it is complete] That did exactly what I wanted.

Good! My name's Richard Heck

I haven't managed to figure out the Tex syntax yet. 
It's really complicated, no doubt. It took me ages to figure it out. 
Fortunately, biblatex has a much more sensible syntax, and I expect 
we'll start to see it adopted widely before too long.


I also have the problem that the APA style requires the second line of 
the reference to be indented (see link below for example) but the 
'apa-good' APA style for natbib that I am using does not do that. 
Could that be easily added? 
That doesn't have anything to do with the .bst file but rather with the 
bibliography environment. I'm not sure how to do this, but you might 
look at the natbib docs. It's in there, I expect.


Richard



Re: natbib / apalike full author list

2008-01-08 Thread Éamonn Linehan
Thanks for your help. [rgheck - send me your name if you like a credit added
to the bst files modification histroy. I will be sharing this style once it
is complete] That did exactly what I wanted. I haven't managed to figure out
the Tex syntax yet. I also have the problem that the APA style requires the
second line of the reference to be indented (see link below for example) but
the 'apa-good' APA style for natbib that I am using does not do that. Could
that be easily added? The styles 'apalike' and 'apacite' achieve this but
don't work properly with natbib. The bst file I am using can be downloaded
from http://www.dsg.cs.tcd.ie/~linehane/lyx/ Any help would be greatly
appreciated.

http://owl.english.purdue.edu/owl/resource/560/06/

- Éamonn

On Jan 7, 2008 4:48 AM, rgheck [EMAIL PROTECTED] wrote:

 Try what's below:
  FUNCTION {book}
  { output.bibitem
author empty$
  { format.editors author and editor output.check
editor format.key output
add.blank
  }
  { format.authors output.nonnull
crossref missing$
  { author and editor editor either.or.check }
  'skip$
if$
  }
if$
format.date year output.check
date.block
format.btitle title output.check
edition missing$
  'skip$
  {   ( format.edition * ) * output }
if$
new.block
crossref missing$
  { format.bvolume output
new.block
format.number.series output
new.sentence
format.publisher.address output
  }
  {
format.book.crossref output.nonnull
  }
if$
new.block
format.note output
fin.entry
write.url
  }
 
 
 I'm not sure exactly what you'd want to do with the volume, series, etc,
 info, but this should get you what you wanted. If not, let me know, and
 I'll have to debug it.

 rh





-- 
___
Éamonn Linehan,
Distributed Systems Group,
F.35 Computer Science Dept.,
Trinity College,
Dublin 2.
Phone: 00353 1 8961543
Email: [EMAIL PROTECTED]
Web:   https://www.cs.tcd.ie/Eamonn.Linehan


Re: natbib / apalike full author list [RESOLVED]

2008-01-08 Thread Éamonn Linehan
To add the indent to citations I added the following to my style.

% (from apalike.sty)
% Set length of hanging indentation for bibliography entries.
%
\newlength{\bibhang}
\setlength{\bibhang}{2em}

% Indent second and subsequent lines of bibliographic entries. Stolen
% from openbib.sty: \newblock is set to {}.

\newdimen\bibindent
\bibindent=1.5em
[EMAIL PROTECTED]
   [EMAIL PROTECTED]
 {\newcommand{\refname}{References}}%
 {\newcommand{\refname}{Bibliography}}%
   }%
   {}%
[EMAIL PROTECTED]
 [EMAIL PROTECTED]
   {\uppercase{\refname}}{\uppercase{\refname}}}\list
   {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}
   \leftmargin\labelwidth
   \advance\leftmargin\labelsep
   \advance\leftmargin\bibindent
   \itemindent -\bibindent
   \listparindent \itemindent
   \parsep \z@
   \usecounter{enumi}}
   \def\newblock{}
   \sloppy
   \sfcode`\.=1000\relax}}
 [EMAIL PROTECTED]
   {\uppercase{\refname}}{\uppercase{\refname}}}\list
   {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}
   \leftmargin\labelwidth
   \advance\leftmargin\labelsep
   \advance\leftmargin\bibindent
   \itemindent -\bibindent
   \listparindent \itemindent
   \parsep \z@
   \usecounter{enumi}}
   \def\newblock{}
   \sloppy
   \sfcode`\.=1000\relax}}




On Jan 8, 2008 10:49 AM, Éamonn Linehan [EMAIL PROTECTED] wrote:

 Thanks for your help. [rgheck - send me your name if you like a credit
 added to the bst files modification histroy. I will be sharing this style
 once it is complete] That did exactly what I wanted. I haven't managed to
 figure out the Tex syntax yet. I also have the problem that the APA style
 requires the second line of the reference to be indented (see link below for
 example) but the 'apa-good' APA style for natbib that I am using does not do
 that. Could that be easily added? The styles 'apalike' and 'apacite' achieve
 this but don't work properly with natbib. The bst file I am using can be
 downloaded from 
 http://www.dsg.cs.tcd.ie/~linehane/lyx/http://www.dsg.cs.tcd.ie/%7Elinehane/lyx/Any
  help would be greatly appreciated.

 http://owl.english.purdue.edu/owl/resource/560/06/

 - Éamonn


 On Jan 7, 2008 4:48 AM, rgheck [EMAIL PROTECTED] wrote:

  Try what's below:
   FUNCTION {book}
   { output.bibitem
 author empty$
   { format.editors author and editor output.check
 editor format.key output
 add.blank
   }
   { format.authors output.nonnull
 crossref missing$
   { author and editor editor either.or.check }
   'skip$
 if$
   }
 if$
 format.date year output.check
 date.block
 format.btitle title output.check
 edition missing$
   'skip$
   {   ( format.edition * ) * output }
 if$
 new.block
 crossref missing$
   { format.bvolume output
 new.block
 format.number.series output
 new.sentence
 format.publisher.address output
   }
   {
 format.book.crossref output.nonnull
   }
 if$
 new.block
 format.note output
 fin.entry
 write.url
   }
  
  
  I'm not sure exactly what you'd want to do with the volume, series, etc,
  info, but this should get you what you wanted. If not, let me know, and
  I'll have to debug it.
 
  rh
 
 
 


 --
 ___
 Éamonn Linehan,
 Distributed Systems Group,
 F.35 Computer Science Dept.,
 Trinity College,
 Dublin 2.
 Phone: 00353 1 8961543
 Email: [EMAIL PROTECTED]
 Web:   https://www.cs.tcd.ie/Eamonn.Linehan




-- 
___
Éamonn Linehan,
Distributed Systems Group,
F.35 Computer Science Dept.,
Trinity College,
Dublin 2.
Phone: 00353 1 8961543
Email: [EMAIL PROTECTED]
Web:   https://www.cs.tcd.ie/Eamonn.Linehan


Re: natbib / apalike full author list

2008-01-08 Thread rgheck

Éamonn Linehan wrote:
Thanks for your help. [rgheck - send me your name if you like a credit 
added to the bst files modification histroy. I will be sharing this 
style once it is complete] That did exactly what I wanted.

Good! My name's Richard Heck

I haven't managed to figure out the Tex syntax yet. 
It's really complicated, no doubt. It took me ages to figure it out. 
Fortunately, biblatex has a much more sensible syntax, and I expect 
we'll start to see it adopted widely before too long.


I also have the problem that the APA style requires the second line of 
the reference to be indented (see link below for example) but the 
'apa-good' APA style for natbib that I am using does not do that. 
Could that be easily added? 
That doesn't have anything to do with the .bst file but rather with the 
bibliography environment. I'm not sure how to do this, but you might 
look at the natbib docs. It's in there, I expect.


Richard



Re: natbib / apalike full author list

2008-01-08 Thread Éamonn Linehan
Thanks for your help. [rgheck - send me your name if you like a credit added
to the bst files modification histroy. I will be sharing this style once it
is complete] That did exactly what I wanted. I haven't managed to figure out
the Tex syntax yet. I also have the problem that the APA style requires the
second line of the reference to be indented (see link below for example) but
the 'apa-good' APA style for natbib that I am using does not do that. Could
that be easily added? The styles 'apalike' and 'apacite' achieve this but
don't work properly with natbib. The bst file I am using can be downloaded
from http://www.dsg.cs.tcd.ie/~linehane/lyx/ Any help would be greatly
appreciated.

http://owl.english.purdue.edu/owl/resource/560/06/

- Éamonn

On Jan 7, 2008 4:48 AM, rgheck <[EMAIL PROTECTED]> wrote:

> Try what's below:
> > FUNCTION {book}
> > { output.bibitem
> >   author empty$
> > { format.editors "author and editor" output.check
> >   editor format.key output
> >   add.blank
> > }
> > { format.authors output.nonnull
> >   crossref missing$
> > { "author and editor" editor either.or.check }
> > 'skip$
> >   if$
> > }
> >   if$
> >   format.date "year" output.check
> >   date.block
> >   format.btitle "title" output.check
> >   edition missing$
> > 'skip$
> > {  " (" format.edition * ")" * output }
> >   if$
> >   new.block
> >   crossref missing$
> > { format.bvolume output
> >   new.block
> >   format.number.series output
> >   new.sentence
> >   format.publisher.address output
> > }
> > {
> >   format.book.crossref output.nonnull
> > }
> >   if$
> >   new.block
> >   format.note output
> >   fin.entry
> >   write.url
> > }
> >
> >
> I'm not sure exactly what you'd want to do with the volume, series, etc,
> info, but this should get you what you wanted. If not, let me know, and
> I'll have to debug it.
>
> rh
>
>
>


-- 
___
Éamonn Linehan,
Distributed Systems Group,
F.35 Computer Science Dept.,
Trinity College,
Dublin 2.
Phone: 00353 1 8961543
Email: [EMAIL PROTECTED]
Web:   https://www.cs.tcd.ie/Eamonn.Linehan


Re: natbib / apalike full author list [RESOLVED]

2008-01-08 Thread Éamonn Linehan
To add the indent to citations I added the following to my style.

% (from apalike.sty)
% Set length of hanging indentation for bibliography entries.
%
\newlength{\bibhang}
\setlength{\bibhang}{2em}

% Indent second and subsequent lines of bibliographic entries. Stolen
% from openbib.sty: \newblock is set to {}.

\newdimen\bibindent
\bibindent=1.5em
[EMAIL PROTECTED]
   [EMAIL PROTECTED]
 {\newcommand{\refname}{References}}%
 {\newcommand{\refname}{Bibliography}}%
   }%
   {}%
[EMAIL PROTECTED]
 [EMAIL PROTECTED]
   {\uppercase{\refname}}{\uppercase{\refname}}}\list
   {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}
   \leftmargin\labelwidth
   \advance\leftmargin\labelsep
   \advance\leftmargin\bibindent
   \itemindent -\bibindent
   \listparindent \itemindent
   \parsep \z@
   \usecounter{enumi}}
   \def\newblock{}
   \sloppy
   \sfcode`\.=1000\relax}}
 [EMAIL PROTECTED]
   {\uppercase{\refname}}{\uppercase{\refname}}}\list
   {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}
   \leftmargin\labelwidth
   \advance\leftmargin\labelsep
   \advance\leftmargin\bibindent
   \itemindent -\bibindent
   \listparindent \itemindent
   \parsep \z@
   \usecounter{enumi}}
   \def\newblock{}
   \sloppy
   \sfcode`\.=1000\relax}}




On Jan 8, 2008 10:49 AM, Éamonn Linehan <[EMAIL PROTECTED]> wrote:

> Thanks for your help. [rgheck - send me your name if you like a credit
> added to the bst files modification histroy. I will be sharing this style
> once it is complete] That did exactly what I wanted. I haven't managed to
> figure out the Tex syntax yet. I also have the problem that the APA style
> requires the second line of the reference to be indented (see link below for
> example) but the 'apa-good' APA style for natbib that I am using does not do
> that. Could that be easily added? The styles 'apalike' and 'apacite' achieve
> this but don't work properly with natbib. The bst file I am using can be
> downloaded from 
> http://www.dsg.cs.tcd.ie/~linehane/lyx/Any
>  help would be greatly appreciated.
>
> http://owl.english.purdue.edu/owl/resource/560/06/
>
> - Éamonn
>
>
> On Jan 7, 2008 4:48 AM, rgheck <[EMAIL PROTECTED]> wrote:
>
> > Try what's below:
> > > FUNCTION {book}
> > > { output.bibitem
> > >   author empty$
> > > { format.editors "author and editor" output.check
> > >   editor format.key output
> > >   add.blank
> > > }
> > > { format.authors output.nonnull
> > >   crossref missing$
> > > { "author and editor" editor either.or.check }
> > > 'skip$
> > >   if$
> > > }
> > >   if$
> > >   format.date "year" output.check
> > >   date.block
> > >   format.btitle "title" output.check
> > >   edition missing$
> > > 'skip$
> > > {  " (" format.edition * ")" * output }
> > >   if$
> > >   new.block
> > >   crossref missing$
> > > { format.bvolume output
> > >   new.block
> > >   format.number.series output
> > >   new.sentence
> > >   format.publisher.address output
> > > }
> > > {
> > >   format.book.crossref output.nonnull
> > > }
> > >   if$
> > >   new.block
> > >   format.note output
> > >   fin.entry
> > >   write.url
> > > }
> > >
> > >
> > I'm not sure exactly what you'd want to do with the volume, series, etc,
> > info, but this should get you what you wanted. If not, let me know, and
> > I'll have to debug it.
> >
> > rh
> >
> >
> >
>
>
> --
> ___
> Éamonn Linehan,
> Distributed Systems Group,
> F.35 Computer Science Dept.,
> Trinity College,
> Dublin 2.
> Phone: 00353 1 8961543
> Email: [EMAIL PROTECTED]
> Web:   https://www.cs.tcd.ie/Eamonn.Linehan
>



-- 
___
Éamonn Linehan,
Distributed Systems Group,
F.35 Computer Science Dept.,
Trinity College,
Dublin 2.
Phone: 00353 1 8961543
Email: [EMAIL PROTECTED]
Web:   https://www.cs.tcd.ie/Eamonn.Linehan


Re: natbib / apalike full author list

2008-01-08 Thread rgheck

Éamonn Linehan wrote:
Thanks for your help. [rgheck - send me your name if you like a credit 
added to the bst files modification histroy. I will be sharing this 
style once it is complete] That did exactly what I wanted.

Good! My name's Richard Heck

I haven't managed to figure out the Tex syntax yet. 
It's really complicated, no doubt. It took me ages to figure it out. 
Fortunately, biblatex has a much more sensible syntax, and I expect 
we'll start to see it adopted widely before too long.


I also have the problem that the APA style requires the second line of 
the reference to be indented (see link below for example) but the 
'apa-good' APA style for natbib that I am using does not do that. 
Could that be easily added? 
That doesn't have anything to do with the .bst file but rather with the 
bibliography environment. I'm not sure how to do this, but you might 
look at the natbib docs. It's in there, I expect.


Richard



Re: natbib / apalike full author list

2008-01-06 Thread Éamonn Linehan
I have tried the .bst you suggested and it does work but deviates from APA
style in a number of places. I wonder if there is someone on the list who
could help me modify the .bst?

Books with an addition are formatted as Catania, C. A. (1998). Learning.
Cornwall-on-Hudson, NY: Sloan Publishing, 4 ed. by this style but APA
requires they be formatted as Catania, C. A. (1998). Learning (4th ed.).
Cornwall-on-Hudson, NY: Sloan Publishing..

Looking through the .bst Style I found these two functions that seem to be
responsible but any modifications I have tried have resulted in the style
not working for books at all. Could anyone help me with this?

FUNCTION {book}
{ output.bibitem
  author empty$
{ format.editors author and editor output.check
  editor format.key output
  add.blank
}
{ format.authors output.nonnull
  crossref missing$
{ author and editor editor either.or.check }
'skip$
  if$
}
  if$
  format.date year output.check
  date.block
  format.btitle title output.check
  crossref missing$
{ format.bvolume output
  new.block
  format.number.series output
  new.sentence
  format.publisher.address output
}
{
  new.block
  format.book.crossref output.nonnull
}
  if$
  format.edition output
  new.block
  format.note output
  fin.entry
  write.url
}


FUNCTION {format.edition}
{ edition duplicate$ empty$ 'skip$
{
  output.state mid.sentence =
{ l }
{ t }
  if$ change.case$
  edition bibinfo.check
* bbl.edition *
}
  if$
}
INTEGERS { multiresult }
FUNCTION {multi.page.check}
{ 't :=
  #0 'multiresult :=
{ multiresult not
  t empty$ not
  and
}
{ t #1 #1 substring$
  duplicate$ - =
  swap$ duplicate$ , =
  swap$ + =
  or or
{ #1 'multiresult := }
{ t #2 global.max$ substring$ 't := }
  if$
}
  while$
  multiresult
}


Thanks

On Dec 28, 2007 6:29 PM, Jürgen Spitzmüller [EMAIL PROTECTED]
wrote:

 Éamonn Linehan wrote:
  Thanks Jürgen. Im sure i read somewhere that apalike is one of the
 styles
  compatible with natbib.

 yes, this is a widespread misunderstanding.

  If i can't use apalike with natbib is there another
  style that is compatible with natbib that also implements the APA style
  rules? Or can apalike be easily modified to support full author lists
 (as
  it appears to support all other features)

 This one aims to do so (I have not tested it):
 http://web.reed.edu/cis/help/LaTeX/images/apa-good.bst.zip

 Jürgen




-- 
___
Éamonn Linehan,
Distributed Systems Group,
F.35 Computer Science Dept.,
Trinity College,
Dublin 2.
Phone: 00353 1 8961543
Email: [EMAIL PROTECTED]
Web:   https://www.cs.tcd.ie/Eamonn.Linehan


Re: natbib / apalike full author list

2008-01-06 Thread rgheck

Try what's below:

FUNCTION {book}
{ output.bibitem
  author empty$
{ format.editors author and editor output.check
  editor format.key output
  add.blank
}
{ format.authors output.nonnull
  crossref missing$
{ author and editor editor either.or.check }
'skip$
  if$
}
  if$
  format.date year output.check
  date.block
  format.btitle title output.check
  edition missing$
'skip$
{   ( format.edition * ) * output }
  if$
  new.block
  crossref missing$
{ format.bvolume output
  new.block
  format.number.series output
  new.sentence
  format.publisher.address output
}
{
  format.book.crossref output.nonnull
}
  if$
  new.block
  format.note output
  fin.entry
  write.url
}

  
I'm not sure exactly what you'd want to do with the volume, series, etc, 
info, but this should get you what you wanted. If not, let me know, and 
I'll have to debug it.


rh




Re: natbib / apalike full author list

2008-01-06 Thread Éamonn Linehan
I have tried the .bst you suggested and it does work but deviates from APA
style in a number of places. I wonder if there is someone on the list who
could help me modify the .bst?

Books with an addition are formatted as Catania, C. A. (1998). Learning.
Cornwall-on-Hudson, NY: Sloan Publishing, 4 ed. by this style but APA
requires they be formatted as Catania, C. A. (1998). Learning (4th ed.).
Cornwall-on-Hudson, NY: Sloan Publishing..

Looking through the .bst Style I found these two functions that seem to be
responsible but any modifications I have tried have resulted in the style
not working for books at all. Could anyone help me with this?

FUNCTION {book}
{ output.bibitem
  author empty$
{ format.editors author and editor output.check
  editor format.key output
  add.blank
}
{ format.authors output.nonnull
  crossref missing$
{ author and editor editor either.or.check }
'skip$
  if$
}
  if$
  format.date year output.check
  date.block
  format.btitle title output.check
  crossref missing$
{ format.bvolume output
  new.block
  format.number.series output
  new.sentence
  format.publisher.address output
}
{
  new.block
  format.book.crossref output.nonnull
}
  if$
  format.edition output
  new.block
  format.note output
  fin.entry
  write.url
}


FUNCTION {format.edition}
{ edition duplicate$ empty$ 'skip$
{
  output.state mid.sentence =
{ l }
{ t }
  if$ change.case$
  edition bibinfo.check
* bbl.edition *
}
  if$
}
INTEGERS { multiresult }
FUNCTION {multi.page.check}
{ 't :=
  #0 'multiresult :=
{ multiresult not
  t empty$ not
  and
}
{ t #1 #1 substring$
  duplicate$ - =
  swap$ duplicate$ , =
  swap$ + =
  or or
{ #1 'multiresult := }
{ t #2 global.max$ substring$ 't := }
  if$
}
  while$
  multiresult
}


Thanks

On Dec 28, 2007 6:29 PM, Jürgen Spitzmüller [EMAIL PROTECTED]
wrote:

 Éamonn Linehan wrote:
  Thanks Jürgen. Im sure i read somewhere that apalike is one of the
 styles
  compatible with natbib.

 yes, this is a widespread misunderstanding.

  If i can't use apalike with natbib is there another
  style that is compatible with natbib that also implements the APA style
  rules? Or can apalike be easily modified to support full author lists
 (as
  it appears to support all other features)

 This one aims to do so (I have not tested it):
 http://web.reed.edu/cis/help/LaTeX/images/apa-good.bst.zip

 Jürgen




-- 
___
Éamonn Linehan,
Distributed Systems Group,
F.35 Computer Science Dept.,
Trinity College,
Dublin 2.
Phone: 00353 1 8961543
Email: [EMAIL PROTECTED]
Web:   https://www.cs.tcd.ie/Eamonn.Linehan


Re: natbib / apalike full author list

2008-01-06 Thread rgheck

Try what's below:

FUNCTION {book}
{ output.bibitem
  author empty$
{ format.editors author and editor output.check
  editor format.key output
  add.blank
}
{ format.authors output.nonnull
  crossref missing$
{ author and editor editor either.or.check }
'skip$
  if$
}
  if$
  format.date year output.check
  date.block
  format.btitle title output.check
  edition missing$
'skip$
{   ( format.edition * ) * output }
  if$
  new.block
  crossref missing$
{ format.bvolume output
  new.block
  format.number.series output
  new.sentence
  format.publisher.address output
}
{
  format.book.crossref output.nonnull
}
  if$
  new.block
  format.note output
  fin.entry
  write.url
}

  
I'm not sure exactly what you'd want to do with the volume, series, etc, 
info, but this should get you what you wanted. If not, let me know, and 
I'll have to debug it.


rh




Re: natbib / apalike full author list

2008-01-06 Thread Éamonn Linehan
I have tried the .bst you suggested and it does work but deviates from APA
style in a number of places. I wonder if there is someone on the list who
could help me modify the .bst?

Books with an addition are formatted as "Catania, C. A. (1998). Learning.
Cornwall-on-Hudson, NY: Sloan Publishing, 4 ed." by this style but APA
requires they be formatted as "Catania, C. A. (1998). Learning (4th ed.).
Cornwall-on-Hudson, NY: Sloan Publishing.".

Looking through the .bst Style I found these two functions that seem to be
responsible but any modifications I have tried have resulted in the style
not working for books at all. Could anyone help me with this?

FUNCTION {book}
{ output.bibitem
  author empty$
{ format.editors "author and editor" output.check
  editor format.key output
  add.blank
}
{ format.authors output.nonnull
  crossref missing$
{ "author and editor" editor either.or.check }
'skip$
  if$
}
  if$
  format.date "year" output.check
  date.block
  format.btitle "title" output.check
  crossref missing$
{ format.bvolume output
  new.block
  format.number.series output
  new.sentence
  format.publisher.address output
}
{
  new.block
  format.book.crossref output.nonnull
}
  if$
  format.edition output
  new.block
  format.note output
  fin.entry
  write.url
}


FUNCTION {format.edition}
{ edition duplicate$ empty$ 'skip$
{
  output.state mid.sentence =
{ "l" }
{ "t" }
  if$ change.case$
  "edition" bibinfo.check
  " " * bbl.edition *
}
  if$
}
INTEGERS { multiresult }
FUNCTION {multi.page.check}
{ 't :=
  #0 'multiresult :=
{ multiresult not
  t empty$ not
  and
}
{ t #1 #1 substring$
  duplicate$ "-" =
  swap$ duplicate$ "," =
  swap$ "+" =
  or or
{ #1 'multiresult := }
{ t #2 global.max$ substring$ 't := }
  if$
}
  while$
  multiresult
}


Thanks

On Dec 28, 2007 6:29 PM, Jürgen Spitzmüller <[EMAIL PROTECTED]>
wrote:

> Éamonn Linehan wrote:
> > Thanks Jürgen. Im sure i read somewhere that apalike is one of the
> styles
> > compatible with natbib.
>
> yes, this is a widespread misunderstanding.
>
> > If i can't use apalike with natbib is there another
> > style that is compatible with natbib that also implements the APA style
> > rules? Or can apalike be easily modified to support full author lists
> (as
> > it appears to support all other features)
>
> This one aims to do so (I have not tested it):
> http://web.reed.edu/cis/help/LaTeX/images/apa-good.bst.zip
>
> Jürgen
>



-- 
___
Éamonn Linehan,
Distributed Systems Group,
F.35 Computer Science Dept.,
Trinity College,
Dublin 2.
Phone: 00353 1 8961543
Email: [EMAIL PROTECTED]
Web:   https://www.cs.tcd.ie/Eamonn.Linehan


Re: natbib / apalike full author list

2008-01-06 Thread rgheck

Try what's below:

FUNCTION {book}
{ output.bibitem
  author empty$
{ format.editors "author and editor" output.check
  editor format.key output
  add.blank
}
{ format.authors output.nonnull
  crossref missing$
{ "author and editor" editor either.or.check }
'skip$
  if$
}
  if$
  format.date "year" output.check
  date.block
  format.btitle "title" output.check
  edition missing$
'skip$
{  " (" format.edition * ")" * output }
  if$
  new.block
  crossref missing$
{ format.bvolume output
  new.block
  format.number.series output
  new.sentence
  format.publisher.address output
}
{
  format.book.crossref output.nonnull
}
  if$
  new.block
  format.note output
  fin.entry
  write.url
}

  
I'm not sure exactly what you'd want to do with the volume, series, etc, 
info, but this should get you what you wanted. If not, let me know, and 
I'll have to debug it.


rh




Re: natbib / apalike full author list

2007-12-28 Thread Jürgen Spitzmüller
Éamonn Linehan wrote:
 is there some incompatibility between natbib and apalike?

probably yes. Natbib and apalike aren't really designed to work together, even 
if they do to a certain degree (by chance).

Using a real natbib style fixes the problem anyway.

Jürgen


Re: natbib / apalike full author list

2007-12-28 Thread Éamonn Linehan
Thanks Jürgen. Im sure i read somewhere that apalike is one of the styles
compatible with natbib. If i can't use apalike with natbib is there another
style that is compatible with natbib that also implements the APA style
rules? Or can apalike be easily modified to support full author lists (as it
appears to support all other features)

- Éamonn

On Dec 28, 2007 4:21 PM, Jürgen Spitzmüller [EMAIL PROTECTED]
wrote:

 Éamonn Linehan wrote:
  is there some incompatibility between natbib and apalike?

 probably yes. Natbib and apalike aren't really designed to work together,
 even
 if they do to a certain degree (by chance).

 Using a real natbib style fixes the problem anyway.

 Jürgen




-- 
___
Éamonn Linehan,
Distributed Systems Group,
F.35 Computer Science Dept.,
Trinity College,
Dublin 2.
Phone: 00353 1 8961543
Email: [EMAIL PROTECTED]
Web:   https://www.cs.tcd.ie/Eamonn.Linehan


Re: natbib / apalike full author list

2007-12-28 Thread Jürgen Spitzmüller
Éamonn Linehan wrote:
 Thanks Jürgen. Im sure i read somewhere that apalike is one of the styles
 compatible with natbib. 

yes, this is a widespread misunderstanding.

 If i can't use apalike with natbib is there another 
 style that is compatible with natbib that also implements the APA style
 rules? Or can apalike be easily modified to support full author lists (as
 it appears to support all other features)

This one aims to do so (I have not tested it):
http://web.reed.edu/cis/help/LaTeX/images/apa-good.bst.zip

Jürgen


Re: natbib / apalike full author list

2007-12-28 Thread Jürgen Spitzmüller
Éamonn Linehan wrote:
 is there some incompatibility between natbib and apalike?

probably yes. Natbib and apalike aren't really designed to work together, even 
if they do to a certain degree (by chance).

Using a real natbib style fixes the problem anyway.

Jürgen


Re: natbib / apalike full author list

2007-12-28 Thread Éamonn Linehan
Thanks Jürgen. Im sure i read somewhere that apalike is one of the styles
compatible with natbib. If i can't use apalike with natbib is there another
style that is compatible with natbib that also implements the APA style
rules? Or can apalike be easily modified to support full author lists (as it
appears to support all other features)

- Éamonn

On Dec 28, 2007 4:21 PM, Jürgen Spitzmüller [EMAIL PROTECTED]
wrote:

 Éamonn Linehan wrote:
  is there some incompatibility between natbib and apalike?

 probably yes. Natbib and apalike aren't really designed to work together,
 even
 if they do to a certain degree (by chance).

 Using a real natbib style fixes the problem anyway.

 Jürgen




-- 
___
Éamonn Linehan,
Distributed Systems Group,
F.35 Computer Science Dept.,
Trinity College,
Dublin 2.
Phone: 00353 1 8961543
Email: [EMAIL PROTECTED]
Web:   https://www.cs.tcd.ie/Eamonn.Linehan


Re: natbib / apalike full author list

2007-12-28 Thread Jürgen Spitzmüller
Éamonn Linehan wrote:
 Thanks Jürgen. Im sure i read somewhere that apalike is one of the styles
 compatible with natbib. 

yes, this is a widespread misunderstanding.

 If i can't use apalike with natbib is there another 
 style that is compatible with natbib that also implements the APA style
 rules? Or can apalike be easily modified to support full author lists (as
 it appears to support all other features)

This one aims to do so (I have not tested it):
http://web.reed.edu/cis/help/LaTeX/images/apa-good.bst.zip

Jürgen


Re: natbib / apalike full author list

2007-12-28 Thread Jürgen Spitzmüller
Éamonn Linehan wrote:
> is there some incompatibility between natbib and apalike?

probably yes. Natbib and apalike aren't really designed to work together, even 
if they do to a certain degree (by chance).

Using a real natbib style fixes the problem anyway.

Jürgen


Re: natbib / apalike full author list

2007-12-28 Thread Éamonn Linehan
Thanks Jürgen. Im sure i read somewhere that apalike is one of the styles
compatible with natbib. If i can't use apalike with natbib is there another
style that is compatible with natbib that also implements the APA style
rules? Or can apalike be easily modified to support full author lists (as it
appears to support all other features)

- Éamonn

On Dec 28, 2007 4:21 PM, Jürgen Spitzmüller <[EMAIL PROTECTED]>
wrote:

> Éamonn Linehan wrote:
> > is there some incompatibility between natbib and apalike?
>
> probably yes. Natbib and apalike aren't really designed to work together,
> even
> if they do to a certain degree (by chance).
>
> Using a real natbib style fixes the problem anyway.
>
> Jürgen
>



-- 
___
Éamonn Linehan,
Distributed Systems Group,
F.35 Computer Science Dept.,
Trinity College,
Dublin 2.
Phone: 00353 1 8961543
Email: [EMAIL PROTECTED]
Web:   https://www.cs.tcd.ie/Eamonn.Linehan


Re: natbib / apalike full author list

2007-12-28 Thread Jürgen Spitzmüller
Éamonn Linehan wrote:
> Thanks Jürgen. Im sure i read somewhere that apalike is one of the styles
> compatible with natbib. 

yes, this is a widespread misunderstanding.

> If i can't use apalike with natbib is there another 
> style that is compatible with natbib that also implements the APA style
> rules? Or can apalike be easily modified to support full author lists (as
> it appears to support all other features)

This one aims to do so (I have not tested it):
http://web.reed.edu/cis/help/LaTeX/images/apa-good.bst.zip

Jürgen