Discussion:
how to restrict cited authors to 3 in the Bibliography
Wolfgang Engelmann
2014-09-26 13:34:42 UTC
Permalink
I use spbasic (Springer Publ) as the bibstyle
(Koma script book)
and get the citations in the text right (Author1, X et al)
However, in the references all Coauthors are cited. How can I resrict it
to 3?
I tried to find an answer in the net, adding
\usepackage{natbib} to the preamble did not help.
Anybody who could help with a pointer?

Wolfgang
Wolfgang Engelmann
2014-09-26 13:38:45 UTC
Permalink
Post by Wolfgang Engelmann
I use spbasic (Springer Publ) as the bibstyle
(Koma script book)
and get the citations in the text right (Author1, X et al)
However, in the references all Coauthors are cited. How can I resrict
it to 3?
I tried to find an answer in the net, adding
\usepackage{natbib} to the preamble did not help.
Anybody who could help with a pointer?
Wolfgang
p.S.
In the references it should read like
Author1,X, Author2,X Author3,X et al
where X is the prenome abbreviation
Benedict Holland
2014-09-26 15:37:21 UTC
Permalink
You should use biblatex. It has the ability to do this. For my example,

\usepackage[

uniquename=false,

uniquelist=false,

maxcitenames=2,

mincitenames=1,

maxbibnames=200,

minbibnames=1,

natbib=true,

url=false,

doi=false,

isbn=false,

eprint=false,

backref=false,

backend=biber,

style=authoryear-comp,

]{biblatex}


maxcitenames, mincitenames will have to be configured to get what you want
but those two options will allow what you need.


~Ben

On Fri, Sep 26, 2014 at 9:38 AM, Wolfgang Engelmann <
Post by Wolfgang Engelmann
I use spbasic (Springer Publ) as the bibstyle
Post by Wolfgang Engelmann
(Koma script book)
and get the citations in the text right (Author1, X et al)
However, in the references all Coauthors are cited. How can I resrict it
to 3?
I tried to find an answer in the net, adding
\usepackage{natbib} to the preamble did not help.
Anybody who could help with a pointer?
Wolfgang
p.S.
In the references it should read like
Author1,X, Author2,X Author3,X et al
where X is the prenome abbreviation
Wolfgang Engelmann
2014-09-26 16:02:19 UTC
Permalink
Thanks, Benedict.
How difficult is it to switch to biblatex and what can go wrong?
Wolfgang
Post by Benedict Holland
You should use biblatex. It has the ability to do this. For my example,
\usepackage[
uniquename=false,
uniquelist=false,
maxcitenames=2,
mincitenames=1,
maxbibnames=200,
minbibnames=1,
natbib=true,
url=false,
doi=false,
isbn=false,
eprint=false,
backref=false,
backend=biber,
style=authoryear-comp,
]{biblatex}
maxcitenames, mincitenames will have to be configured to get what you want
but those two options will allow what you need.
~Ben
On Fri, Sep 26, 2014 at 9:38 AM, Wolfgang Engelmann <
Post by Wolfgang Engelmann
I use spbasic (Springer Publ) as the bibstyle
Post by Wolfgang Engelmann
(Koma script book)
and get the citations in the text right (Author1, X et al)
However, in the references all Coauthors are cited. How can I resrict it
to 3?
I tried to find an answer in the net, adding
\usepackage{natbib} to the preamble did not help.
Anybody who could help with a pointer?
Wolfgang
p.S.
In the references it should read like
Author1,X, Author2,X Author3,X et al
where X is the prenome abbreviation
Wolfgang Engelmann
2014-09-26 16:13:44 UTC
Permalink
Post by Wolfgang Engelmann
Thanks, Benedict.
How difficult is it to switch to biblatex and what can go wrong?
Wolfgang
And what about biber under lyx?
Wolfgang
Post by Wolfgang Engelmann
Post by Benedict Holland
You should use biblatex. It has the ability to do this. For my example,
\usepackage[
uniquename=false,
uniquelist=false,
maxcitenames=2,
mincitenames=1,
maxbibnames=200,
minbibnames=1,
natbib=true,
url=false,
doi=false,
isbn=false,
eprint=false,
backref=false,
backend=biber,
style=authoryear-comp,
]{biblatex}
maxcitenames, mincitenames will have to be configured to get what you want
but those two options will allow what you need.
~Ben
On Fri, Sep 26, 2014 at 9:38 AM, Wolfgang Engelmann <
Post by Wolfgang Engelmann
I use spbasic (Springer Publ) as the bibstyle
Post by Wolfgang Engelmann
(Koma script book)
and get the citations in the text right (Author1, X et al)
However, in the references all Coauthors are cited. How can I resrict it
to 3?
I tried to find an answer in the net, adding
\usepackage{natbib} to the preamble did not help.
Anybody who could help with a pointer?
Wolfgang
p.S.
In the references it should read like
Author1,X, Author2,X Author3,X et al
where X is the prenome abbreviation
stefano franchi
2014-09-26 18:47:27 UTC
Permalink
On Fri, Sep 26, 2014 at 11:13 AM, Wolfgang Engelmann <
Post by Wolfgang Engelmann
Post by Wolfgang Engelmann
Thanks, Benedict.
How difficult is it to switch to biblatex and what can go wrong?
Wolfgang
And what about biber under lyx?
Biber/biblatex usually work well under lyx if you follow the instructions
in the wiki.
Or did you have a specific problem in mind?

S.
--
__________________________________________________
Stefano Franchi

***@gmail.com <***@tamu.edu>
http://stefano.cleinias.org
Benedict Holland
2014-09-26 19:27:53 UTC
Permalink
I would say that what could go wrong is your references might need to be
cleaned up. I know that was the huge shift for me. The major difference
(and in my opinion a terrible decision) is that biblatex assumed that your
bib file is valid latex code. That means that all reserved characters are
escaped. I work in economics so for me, the dollar sign was the big one. I
also found that there are a lot of configuration options. For me, this code
was the closest I closest I got to the default lyx.

BTW, biber should work well too. Both require additional work. For me,
biblatex was the choice I made but I am not saying it is the only choice.

The document explaining biblatex-lyx integration is here.
http://wiki.lyx.org/BibTeX/Biblatex If you follow the steps carefully it
should not be problematic. This will require some careful tweaking on your
end though. It took me a very long time to get two or more authors to be
author 1 et. al. AND for the full list of authors to be listed in the
bibliogrophy. For you, Wolfgang, given the specific requirements I would
suggest biblatex. Getting it work will only help you in the long run but I
found the process to less ideal than I would have liked. It took me about
an hour or two to get everything working the way I wanted it to and most of
it was figuring out the usepackage options.

~Ben
Post by stefano franchi
On Fri, Sep 26, 2014 at 11:13 AM, Wolfgang Engelmann <
Post by Wolfgang Engelmann
Post by Wolfgang Engelmann
Thanks, Benedict.
How difficult is it to switch to biblatex and what can go wrong?
Wolfgang
And what about biber under lyx?
Biber/biblatex usually work well under lyx if you follow the instructions
in the wiki.
Or did you have a specific problem in mind?
S.
--
__________________________________________________
Stefano Franchi
http://stefano.cleinias.org
Julien Rioux
2014-09-26 20:34:32 UTC
Permalink
Post by Wolfgang Engelmann
Post by Wolfgang Engelmann
I use spbasic (Springer Publ) as the bibstyle
(Koma script book)
and get the citations in the text right (Author1, X et al)
However, in the references all Coauthors are cited. How can I resrict
it to 3?
I tried to find an answer in the net, adding
\usepackage{natbib} to the preamble did not help.
Anybody who could help with a pointer?
Wolfgang
p.S.
In the references it should read like
Author1,X, Author2,X Author3,X et al
where X is the prenome abbreviation
To stick to bibtex, you would have to slightly modify the .bst style
file, namely the format.names function, maybe something like this:

$ diff -u spbasic.bst spbasic3.bst
--- spbasic.bst 2014-09-26 16:17:29.093778700 -0400
+++ spbasic3.bst 2014-09-26 16:25:46.120207000 -0400
@@ -490,6 +490,12 @@
if$
nameptr #1 + 'nameptr :=
namesleft #1 - 'namesleft :=
+ nameptr #3 >
+ namesleft #0 >
+ and
+ {" " * bbl.etal * #0 'namesleft :=}
+ {}
+ if$
}
while$
} if$

The above says, if 3 names have already been printed, and the number of
names remaining to be printed is greater than zero, than print " " and
"et al" and set the number of remaining names to zero.

Attached is spbasic3.bst, a style file based on spbasic.bst with the
above change.

Cheers,
Julien
--
Julien
Benedict Holland
2014-09-26 21:07:36 UTC
Permalink
Wouldn't that change the default for every document using that particular
style though? If this is only for one journal, modification of style files
would not only be overkill, but would impact future work in unexpected
ways. To get the desired results, it would be best to limit it to document
specific changes. For that, configuring biblatex or biber or biblatex using
biber would be the much more prefered approach. A philosophy of "don't
change more than you need to" is demanded when using lyx and latex, at
least to me. That said, yes. Changing the format of how bibtex writes out
the references in the document would work but from a technical standpoint,
that does far more than just change the reference output for a single
document so would best be avoided.

~Ben
Post by Wolfgang Engelmann
Post by Wolfgang Engelmann
I use spbasic (Springer Publ) as the bibstyle
(Koma script book)
and get the citations in the text right (Author1, X et al)
However, in the references all Coauthors are cited. How can I resrict
it to 3?
I tried to find an answer in the net, adding
\usepackage{natbib} to the preamble did not help.
Anybody who could help with a pointer?
Wolfgang
p.S.
In the references it should read like
Author1,X, Author2,X Author3,X et al
where X is the prenome abbreviation
To stick to bibtex, you would have to slightly modify the .bst style file,
$ diff -u spbasic.bst spbasic3.bst
--- spbasic.bst 2014-09-26 16:17:29.093778700 -0400
+++ spbasic3.bst 2014-09-26 16:25:46.120207000 -0400
@@ -490,6 +490,12 @@
if$
nameptr #1 + 'nameptr :=
namesleft #1 - 'namesleft :=
+ nameptr #3 >
+ namesleft #0 >
+ and
+ {" " * bbl.etal * #0 'namesleft :=}
+ {}
+ if$
}
while$
} if$
The above says, if 3 names have already been printed, and the number of
names remaining to be printed is greater than zero, than print " " and "et
al" and set the number of remaining names to zero.
Attached is spbasic3.bst, a style file based on spbasic.bst with the above
change.
Cheers,
Julien
--
Julien
Julien Rioux
2014-09-26 21:18:55 UTC
Permalink
Post by Benedict Holland
Wouldn't that change the default for every document using that
particular style though? If this is only for one journal, modification
of style files would not only be overkill, but would impact future work
in unexpected ways. To get the desired results, it would be best to
limit it to document specific changes. For that, configuring biblatex or
biber or biblatex using biber would be the much more prefered approach.
A philosophy of "don't change more than you need to" is demanded when
using lyx and latex, at least to me. That said, yes. Changing the format
of how bibtex writes out the references in the document would work but
from a technical standpoint, that does far more than just change the
reference output for a single document so would best be avoided.
~Ben
Your concern is true only if one saves the modified file under the same
name as the original and somewhere in the tex tree. Good practice
dictates that if one modifies a style file, then a different name is
also given to it, as I did. And one can decide whether to have this new
style available in the tex tree or to keep it local, since it is
sufficient to have it saved in the current document's directory.

I can understand that bibtex has deep issues which are only really
addressed by moving on to a different system, but the concern you raise
does not appear to me to be one of them.

Cheers,
Julien
Wolfgang Engelmann
2014-09-27 07:30:51 UTC
Permalink
Post by Julien Rioux
Post by Benedict Holland
Wouldn't that change the default for every document using that
particular style though? If this is only for one journal, modification
of style files would not only be overkill, but would impact future work
in unexpected ways. To get the desired results, it would be best to
limit it to document specific changes. For that, configuring biblatex or
biber or biblatex using biber would be the much more prefered approach.
A philosophy of "don't change more than you need to" is demanded when
using lyx and latex, at least to me. That said, yes. Changing the format
of how bibtex writes out the references in the document would work but
from a technical standpoint, that does far more than just change the
reference output for a single document so would best be avoided.
~Ben
Your concern is true only if one saves the modified file under the
same name as the original and somewhere in the tex tree. Good practice
dictates that if one modifies a style file, then a different name is
also given to it, as I did. And one can decide whether to have this
new style available in the tex tree or to keep it local, since it is
sufficient to have it saved in the current document's directory.
I can understand that bibtex has deep issues which are only really
addressed by moving on to a different system, but the concern you
raise does not appear to me to be one of them.
Cheers,
Julien
Thanks, Julien and Benedict for your advices.

Since it was very fast (just copied the attached spbasic3.bst to my
local folder and changed spbasic.bst to spbasic3.bst under Bibtex
generated Bibliography at the end of my document) I used Juliens
proposal, although I will try biber/biblatex later when I am not under
time pressure.

I am so glad to have LyX and such a helpful and kind list behind it.
Wolfgang

Loading...