natbib APA references for multiple authors

2008-01-18 Thread Éamonn Linehan
When there are two or more authors on a paper and the reference is
withing brackets, the APA guidelines are that it should be (Linehan 
Linehan, 2008).  Its doing this, which is good.  However, when the
authors are outside the brackets it should be Linehan and Linehan
(2008).  The '' sign should never be used outside of brackets. So
natbib should be doing this:

\citet*{jon90}  Jones, Baker, and Williams (1990)
\citep*{jon90} (Jones, Baker,  Williams, 1990)

Is this something I can modify in a .bst file. Could anyone help me
with this? Im using this natbib compatible .bst file
(http://www.dsg.cs.tcd.ie/~linehane/lyx/apa-good.bst).

Thanks
___
É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


natbib APA references for multiple authors

2008-01-18 Thread Éamonn Linehan
When there are two or more authors on a paper and the reference is
withing brackets, the APA guidelines are that it should be (Linehan 
Linehan, 2008).  Its doing this, which is good.  However, when the
authors are outside the brackets it should be Linehan and Linehan
(2008).  The '' sign should never be used outside of brackets. So
natbib should be doing this:

\citet*{jon90}  Jones, Baker, and Williams (1990)
\citep*{jon90} (Jones, Baker,  Williams, 1990)

Is this something I can modify in a .bst file. Could anyone help me
with this? Im using this natbib compatible .bst file
(http://www.dsg.cs.tcd.ie/~linehane/lyx/apa-good.bst).

Thanks
___
É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


natbib APA references for multiple authors

2008-01-18 Thread Éamonn Linehan
When there are two or more authors on a paper and the reference is
withing brackets, the APA guidelines are that it should be (Linehan &
Linehan, 2008).  Its doing this, which is good.  However, when the
authors are outside the brackets it should be Linehan and Linehan
(2008).  The '&' sign should never be used outside of brackets. So
natbib should be doing this:

\citet*{jon90}  Jones, Baker, and Williams (1990)
\citep*{jon90} (Jones, Baker, & Williams, 1990)

Is this something I can modify in a .bst file. Could anyone help me
with this? Im using this natbib compatible .bst file
(http://www.dsg.cs.tcd.ie/~linehane/lyx/apa-good.bst).

Thanks
___
É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 É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: thesis template collection

2008-01-08 Thread Éamonn Linehan
I have posted a template and sample thesis here:
http://www.dsg.cs.tcd.ie/~linehane/lyx/

It is for my university but you can modify udthesis.sty to refer to
another.

- Éamonn

On Jan 8, 2008 3:23 PM, [EMAIL PROTECTED] wrote:

 On Tuesday 08 January 2008 15:02, Robert Poser wrote:
  Hi there,
 
  I'd like to collect/share LyX thesis templates from different
 universities.
  Interests can publish their own templates and profit by hints of others.
 
  www.thesis-template.com.
 
  thanx,
  Rob

 Are there any PhD thesis LyX templates in English?

 Mateo.




-- 
___
É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 É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: thesis template collection

2008-01-08 Thread Éamonn Linehan
I have posted a template and sample thesis here:
http://www.dsg.cs.tcd.ie/~linehane/lyx/

It is for my university but you can modify udthesis.sty to refer to
another.

- Éamonn

On Jan 8, 2008 3:23 PM, [EMAIL PROTECTED] wrote:

 On Tuesday 08 January 2008 15:02, Robert Poser wrote:
  Hi there,
 
  I'd like to collect/share LyX thesis templates from different
 universities.
  Interests can publish their own templates and profit by hints of others.
 
  www.thesis-template.com.
 
  thanx,
  Rob

 Are there any PhD thesis LyX templates in English?

 Mateo.




-- 
___
É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 É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: thesis template collection

2008-01-08 Thread Éamonn Linehan
I have posted a template and sample thesis here:
http://www.dsg.cs.tcd.ie/~linehane/lyx/

It is for my university but you can modify "udthesis.sty" to refer to
another.

- Éamonn

On Jan 8, 2008 3:23 PM, <[EMAIL PROTECTED]> wrote:

> On Tuesday 08 January 2008 15:02, Robert Poser wrote:
> > Hi there,
> >
> > I'd like to collect/share LyX thesis templates from different
> universities.
> > Interests can publish their own templates and profit by hints of others.
> >
> > www.thesis-template.com.
> >
> > thanx,
> > Rob
>
> Are there any PhD thesis LyX templates in English?
>
> Mateo.
>



-- 
___
É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 É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 É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 É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


natbib / apalike full author list

2007-12-28 Thread Éamonn Linehan
I using lyx 1.5.3 to prepare a thesis. I am using natbib and the apalike
style to format citations and the bibliography but can't get lyx to insert a
full authors list. I'd like to be able to include a full authors list the
fist time a reference appears and from then on use the et al. abbreviation.
Using Lyx's Full author list checkbox in the Citation dialogue does
nothing. To check what lyx is doing under the hood I exported the document
to LaTex and found the correct \citep*{} is being used. I don't know what
else to try. is there some incompatibility between natbib and apalike? Any
help would be much appreciated.

A lyx file demonstrating the problem can be downloaded from
https://www.cs.tcd.ie/Eamonn.Linehan/testfile.zip.

-- Éamonn
___
É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 É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


natbib / apalike full author list

2007-12-28 Thread Éamonn Linehan
I using lyx 1.5.3 to prepare a thesis. I am using natbib and the apalike
style to format citations and the bibliography but can't get lyx to insert a
full authors list. I'd like to be able to include a full authors list the
fist time a reference appears and from then on use the et al. abbreviation.
Using Lyx's Full author list checkbox in the Citation dialogue does
nothing. To check what lyx is doing under the hood I exported the document
to LaTex and found the correct \citep*{} is being used. I don't know what
else to try. is there some incompatibility between natbib and apalike? Any
help would be much appreciated.

A lyx file demonstrating the problem can be downloaded from
https://www.cs.tcd.ie/Eamonn.Linehan/testfile.zip.

-- Éamonn
___
É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 É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


natbib / apalike full author list

2007-12-28 Thread Éamonn Linehan
I using lyx 1.5.3 to prepare a thesis. I am using natbib and the apalike
style to format citations and the bibliography but can't get lyx to insert a
full authors list. I'd like to be able to include a full authors list the
fist time a reference appears and from then on use the et al. abbreviation.
Using Lyx's "Full author list" checkbox in the Citation dialogue does
nothing. To check what lyx is doing under the hood I exported the document
to LaTex and found the correct \citep*{} is being used. I don't know what
else to try. is there some incompatibility between natbib and apalike? Any
help would be much appreciated.

A lyx file demonstrating the problem can be downloaded from
https://www.cs.tcd.ie/Eamonn.Linehan/testfile.zip.

-- Éamonn
_______
É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 É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