acmart natbib: how to display partial authors in the references
up vote
0
down vote
favorite
I am using a template acmart of ACM. I have a problem: my reference list always displays all author names of an article.
Is there an option for limiting the number of authors in a reference with the ACM template ?
bibliographystyle{ACM-Reference-Format}
bibliography{bibliography}
Thanks
bibliographies acmart
add a comment |
up vote
0
down vote
favorite
I am using a template acmart of ACM. I have a problem: my reference list always displays all author names of an article.
Is there an option for limiting the number of authors in a reference with the ACM template ?
bibliographystyle{ACM-Reference-Format}
bibliography{bibliography}
Thanks
bibliographies acmart
2
Where should the cut-off be? And what should be shown in lieu of the suppresed authors' names?
– Mico
Nov 25 at 22:32
In biblatex, there are the option "number max of authors". I have references with 15 authors :-/
– Karima Rafes
Nov 26 at 15:32
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am using a template acmart of ACM. I have a problem: my reference list always displays all author names of an article.
Is there an option for limiting the number of authors in a reference with the ACM template ?
bibliographystyle{ACM-Reference-Format}
bibliography{bibliography}
Thanks
bibliographies acmart
I am using a template acmart of ACM. I have a problem: my reference list always displays all author names of an article.
Is there an option for limiting the number of authors in a reference with the ACM template ?
bibliographystyle{ACM-Reference-Format}
bibliography{bibliography}
Thanks
bibliographies acmart
bibliographies acmart
asked Nov 25 at 20:40
Karima Rafes
1136
1136
2
Where should the cut-off be? And what should be shown in lieu of the suppresed authors' names?
– Mico
Nov 25 at 22:32
In biblatex, there are the option "number max of authors". I have references with 15 authors :-/
– Karima Rafes
Nov 26 at 15:32
add a comment |
2
Where should the cut-off be? And what should be shown in lieu of the suppresed authors' names?
– Mico
Nov 25 at 22:32
In biblatex, there are the option "number max of authors". I have references with 15 authors :-/
– Karima Rafes
Nov 26 at 15:32
2
2
Where should the cut-off be? And what should be shown in lieu of the suppresed authors' names?
– Mico
Nov 25 at 22:32
Where should the cut-off be? And what should be shown in lieu of the suppresed authors' names?
– Mico
Nov 25 at 22:32
In biblatex, there are the option "number max of authors". I have references with 15 authors :-/
– Karima Rafes
Nov 26 at 15:32
In biblatex, there are the option "number max of authors". I have references with 15 authors :-/
– Karima Rafes
Nov 26 at 15:32
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
You can modify ACM-Reference-Format.bst
to truncate lists of people. There are three places where you need to change a few lines.
You can get the modified file directly from https://gist.github.com/moewew/1f7c74b4229fdb44bc9f05d6e96d915a or apply the following patch to ACM-Reference-Format.bst
to obtain ACM-Reference-Format-num.bst
.
--- ACM-Reference-Format.bst 2018-10-21 23:12:52.000000000 +0200
+++ ACM-Reference-Format-num.bst 2018-11-26 18:11:16.051275200 +0100
@@ -999,7 +999,14 @@
%NO: BAD ORDER: {"{" s nameptr "{ff~}{ll}{, jj}{, vv}" format.name$ * "}" * 't := }
%NO: BAD ORDER: {"{" s nameptr "{ff~}{ll}{, jj}{, vv}" format.name$ * "}" * 't := }
{"bibinfo{person}{" s nameptr "{ff }{vv }{ll}{, jj}" format.name$ * "}" * 't := }
- {"bibinfo{person}{" s nameptr "{ff }{vv }{ll}{, jj}" format.name$ * "}" * 't := }
+ {"bibinfo{person}{"
+ nameptr #5 >
+ { #1 'namesleft :=
+ "others" }
+ { s nameptr "{ff }{vv }{ll}{, jj}" format.name$ }
+ if$
+ * "}" *
+ 't := }
if$
nameptr #1 >
{
@@ -1033,7 +1040,12 @@
numnames 'namesleft :=
{ namesleft #0 > }
- { s nameptr "{vv~}{ll}" format.name$ 't := % get the next name
+ { nameptr #5 >
+ { #1 'namesleft :=
+ "others" }
+ { s nameptr "{vv~}{ll}" format.name$ }
+ if$
+ 't := % get the next name
nameptr #1 >
{
namesleft #1 >
@@ -1072,7 +1084,13 @@
{ namesleft #0 > }
{
- "bibinfo{person}{" s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ * "}" * 't :=
+ "bibinfo{person}{"
+ nameptr #5 >
+ { #1 'namesleft :=
+ "others" }
+ { s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ }
+ if$
+ * "}" * 't :=
nameptr #1 >
{
Change the #5
to #<number of people before truncation>
. The default truncation for citation labels is #2
.
documentclass[british]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{natbib}
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@book{many,
author = {Anne Uthor and William Riter and Connie Ontributor and Emma Ditor
and Anne Elk and James Hacker and Sophie Cribe},
title = {The Book of Many Authors},
year = {1980},
publisher = {P. Ublisher},
address = {Place},
}
end{filecontents}
begin{document}
cite{many}
bibliographystyle{ACM-Reference-Format-num}
bibliography{jobname}
end{document}
gives
Cool ! Thanks !
– Karima Rafes
Nov 26 at 17:40
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
You can modify ACM-Reference-Format.bst
to truncate lists of people. There are three places where you need to change a few lines.
You can get the modified file directly from https://gist.github.com/moewew/1f7c74b4229fdb44bc9f05d6e96d915a or apply the following patch to ACM-Reference-Format.bst
to obtain ACM-Reference-Format-num.bst
.
--- ACM-Reference-Format.bst 2018-10-21 23:12:52.000000000 +0200
+++ ACM-Reference-Format-num.bst 2018-11-26 18:11:16.051275200 +0100
@@ -999,7 +999,14 @@
%NO: BAD ORDER: {"{" s nameptr "{ff~}{ll}{, jj}{, vv}" format.name$ * "}" * 't := }
%NO: BAD ORDER: {"{" s nameptr "{ff~}{ll}{, jj}{, vv}" format.name$ * "}" * 't := }
{"bibinfo{person}{" s nameptr "{ff }{vv }{ll}{, jj}" format.name$ * "}" * 't := }
- {"bibinfo{person}{" s nameptr "{ff }{vv }{ll}{, jj}" format.name$ * "}" * 't := }
+ {"bibinfo{person}{"
+ nameptr #5 >
+ { #1 'namesleft :=
+ "others" }
+ { s nameptr "{ff }{vv }{ll}{, jj}" format.name$ }
+ if$
+ * "}" *
+ 't := }
if$
nameptr #1 >
{
@@ -1033,7 +1040,12 @@
numnames 'namesleft :=
{ namesleft #0 > }
- { s nameptr "{vv~}{ll}" format.name$ 't := % get the next name
+ { nameptr #5 >
+ { #1 'namesleft :=
+ "others" }
+ { s nameptr "{vv~}{ll}" format.name$ }
+ if$
+ 't := % get the next name
nameptr #1 >
{
namesleft #1 >
@@ -1072,7 +1084,13 @@
{ namesleft #0 > }
{
- "bibinfo{person}{" s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ * "}" * 't :=
+ "bibinfo{person}{"
+ nameptr #5 >
+ { #1 'namesleft :=
+ "others" }
+ { s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ }
+ if$
+ * "}" * 't :=
nameptr #1 >
{
Change the #5
to #<number of people before truncation>
. The default truncation for citation labels is #2
.
documentclass[british]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{natbib}
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@book{many,
author = {Anne Uthor and William Riter and Connie Ontributor and Emma Ditor
and Anne Elk and James Hacker and Sophie Cribe},
title = {The Book of Many Authors},
year = {1980},
publisher = {P. Ublisher},
address = {Place},
}
end{filecontents}
begin{document}
cite{many}
bibliographystyle{ACM-Reference-Format-num}
bibliography{jobname}
end{document}
gives
Cool ! Thanks !
– Karima Rafes
Nov 26 at 17:40
add a comment |
up vote
1
down vote
accepted
You can modify ACM-Reference-Format.bst
to truncate lists of people. There are three places where you need to change a few lines.
You can get the modified file directly from https://gist.github.com/moewew/1f7c74b4229fdb44bc9f05d6e96d915a or apply the following patch to ACM-Reference-Format.bst
to obtain ACM-Reference-Format-num.bst
.
--- ACM-Reference-Format.bst 2018-10-21 23:12:52.000000000 +0200
+++ ACM-Reference-Format-num.bst 2018-11-26 18:11:16.051275200 +0100
@@ -999,7 +999,14 @@
%NO: BAD ORDER: {"{" s nameptr "{ff~}{ll}{, jj}{, vv}" format.name$ * "}" * 't := }
%NO: BAD ORDER: {"{" s nameptr "{ff~}{ll}{, jj}{, vv}" format.name$ * "}" * 't := }
{"bibinfo{person}{" s nameptr "{ff }{vv }{ll}{, jj}" format.name$ * "}" * 't := }
- {"bibinfo{person}{" s nameptr "{ff }{vv }{ll}{, jj}" format.name$ * "}" * 't := }
+ {"bibinfo{person}{"
+ nameptr #5 >
+ { #1 'namesleft :=
+ "others" }
+ { s nameptr "{ff }{vv }{ll}{, jj}" format.name$ }
+ if$
+ * "}" *
+ 't := }
if$
nameptr #1 >
{
@@ -1033,7 +1040,12 @@
numnames 'namesleft :=
{ namesleft #0 > }
- { s nameptr "{vv~}{ll}" format.name$ 't := % get the next name
+ { nameptr #5 >
+ { #1 'namesleft :=
+ "others" }
+ { s nameptr "{vv~}{ll}" format.name$ }
+ if$
+ 't := % get the next name
nameptr #1 >
{
namesleft #1 >
@@ -1072,7 +1084,13 @@
{ namesleft #0 > }
{
- "bibinfo{person}{" s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ * "}" * 't :=
+ "bibinfo{person}{"
+ nameptr #5 >
+ { #1 'namesleft :=
+ "others" }
+ { s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ }
+ if$
+ * "}" * 't :=
nameptr #1 >
{
Change the #5
to #<number of people before truncation>
. The default truncation for citation labels is #2
.
documentclass[british]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{natbib}
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@book{many,
author = {Anne Uthor and William Riter and Connie Ontributor and Emma Ditor
and Anne Elk and James Hacker and Sophie Cribe},
title = {The Book of Many Authors},
year = {1980},
publisher = {P. Ublisher},
address = {Place},
}
end{filecontents}
begin{document}
cite{many}
bibliographystyle{ACM-Reference-Format-num}
bibliography{jobname}
end{document}
gives
Cool ! Thanks !
– Karima Rafes
Nov 26 at 17:40
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
You can modify ACM-Reference-Format.bst
to truncate lists of people. There are three places where you need to change a few lines.
You can get the modified file directly from https://gist.github.com/moewew/1f7c74b4229fdb44bc9f05d6e96d915a or apply the following patch to ACM-Reference-Format.bst
to obtain ACM-Reference-Format-num.bst
.
--- ACM-Reference-Format.bst 2018-10-21 23:12:52.000000000 +0200
+++ ACM-Reference-Format-num.bst 2018-11-26 18:11:16.051275200 +0100
@@ -999,7 +999,14 @@
%NO: BAD ORDER: {"{" s nameptr "{ff~}{ll}{, jj}{, vv}" format.name$ * "}" * 't := }
%NO: BAD ORDER: {"{" s nameptr "{ff~}{ll}{, jj}{, vv}" format.name$ * "}" * 't := }
{"bibinfo{person}{" s nameptr "{ff }{vv }{ll}{, jj}" format.name$ * "}" * 't := }
- {"bibinfo{person}{" s nameptr "{ff }{vv }{ll}{, jj}" format.name$ * "}" * 't := }
+ {"bibinfo{person}{"
+ nameptr #5 >
+ { #1 'namesleft :=
+ "others" }
+ { s nameptr "{ff }{vv }{ll}{, jj}" format.name$ }
+ if$
+ * "}" *
+ 't := }
if$
nameptr #1 >
{
@@ -1033,7 +1040,12 @@
numnames 'namesleft :=
{ namesleft #0 > }
- { s nameptr "{vv~}{ll}" format.name$ 't := % get the next name
+ { nameptr #5 >
+ { #1 'namesleft :=
+ "others" }
+ { s nameptr "{vv~}{ll}" format.name$ }
+ if$
+ 't := % get the next name
nameptr #1 >
{
namesleft #1 >
@@ -1072,7 +1084,13 @@
{ namesleft #0 > }
{
- "bibinfo{person}{" s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ * "}" * 't :=
+ "bibinfo{person}{"
+ nameptr #5 >
+ { #1 'namesleft :=
+ "others" }
+ { s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ }
+ if$
+ * "}" * 't :=
nameptr #1 >
{
Change the #5
to #<number of people before truncation>
. The default truncation for citation labels is #2
.
documentclass[british]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{natbib}
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@book{many,
author = {Anne Uthor and William Riter and Connie Ontributor and Emma Ditor
and Anne Elk and James Hacker and Sophie Cribe},
title = {The Book of Many Authors},
year = {1980},
publisher = {P. Ublisher},
address = {Place},
}
end{filecontents}
begin{document}
cite{many}
bibliographystyle{ACM-Reference-Format-num}
bibliography{jobname}
end{document}
gives
You can modify ACM-Reference-Format.bst
to truncate lists of people. There are three places where you need to change a few lines.
You can get the modified file directly from https://gist.github.com/moewew/1f7c74b4229fdb44bc9f05d6e96d915a or apply the following patch to ACM-Reference-Format.bst
to obtain ACM-Reference-Format-num.bst
.
--- ACM-Reference-Format.bst 2018-10-21 23:12:52.000000000 +0200
+++ ACM-Reference-Format-num.bst 2018-11-26 18:11:16.051275200 +0100
@@ -999,7 +999,14 @@
%NO: BAD ORDER: {"{" s nameptr "{ff~}{ll}{, jj}{, vv}" format.name$ * "}" * 't := }
%NO: BAD ORDER: {"{" s nameptr "{ff~}{ll}{, jj}{, vv}" format.name$ * "}" * 't := }
{"bibinfo{person}{" s nameptr "{ff }{vv }{ll}{, jj}" format.name$ * "}" * 't := }
- {"bibinfo{person}{" s nameptr "{ff }{vv }{ll}{, jj}" format.name$ * "}" * 't := }
+ {"bibinfo{person}{"
+ nameptr #5 >
+ { #1 'namesleft :=
+ "others" }
+ { s nameptr "{ff }{vv }{ll}{, jj}" format.name$ }
+ if$
+ * "}" *
+ 't := }
if$
nameptr #1 >
{
@@ -1033,7 +1040,12 @@
numnames 'namesleft :=
{ namesleft #0 > }
- { s nameptr "{vv~}{ll}" format.name$ 't := % get the next name
+ { nameptr #5 >
+ { #1 'namesleft :=
+ "others" }
+ { s nameptr "{vv~}{ll}" format.name$ }
+ if$
+ 't := % get the next name
nameptr #1 >
{
namesleft #1 >
@@ -1072,7 +1084,13 @@
{ namesleft #0 > }
{
- "bibinfo{person}{" s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ * "}" * 't :=
+ "bibinfo{person}{"
+ nameptr #5 >
+ { #1 'namesleft :=
+ "others" }
+ { s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ }
+ if$
+ * "}" * 't :=
nameptr #1 >
{
Change the #5
to #<number of people before truncation>
. The default truncation for citation labels is #2
.
documentclass[british]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{babel}
usepackage{natbib}
usepackage{filecontents}
begin{filecontents}{jobname.bib}
@book{many,
author = {Anne Uthor and William Riter and Connie Ontributor and Emma Ditor
and Anne Elk and James Hacker and Sophie Cribe},
title = {The Book of Many Authors},
year = {1980},
publisher = {P. Ublisher},
address = {Place},
}
end{filecontents}
begin{document}
cite{many}
bibliographystyle{ACM-Reference-Format-num}
bibliography{jobname}
end{document}
gives
answered Nov 26 at 17:18
moewe
83.6k8107321
83.6k8107321
Cool ! Thanks !
– Karima Rafes
Nov 26 at 17:40
add a comment |
Cool ! Thanks !
– Karima Rafes
Nov 26 at 17:40
Cool ! Thanks !
– Karima Rafes
Nov 26 at 17:40
Cool ! Thanks !
– Karima Rafes
Nov 26 at 17:40
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461736%2facmart-natbib-how-to-display-partial-authors-in-the-references%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
Where should the cut-off be? And what should be shown in lieu of the suppresed authors' names?
– Mico
Nov 25 at 22:32
In biblatex, there are the option "number max of authors". I have references with 15 authors :-/
– Karima Rafes
Nov 26 at 15:32