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










share|improve this question


















  • 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















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










share|improve this question


















  • 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













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










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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














  • 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










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



Anne Uthor, William Riter, Connie Ontributor, Emma Ditor, Anne Elk, et al. 1980. The Book of Many Authors. P. Ublisher, Place.






share|improve this answer





















  • Cool ! Thanks !
    – Karima Rafes
    Nov 26 at 17:40











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















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

























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



Anne Uthor, William Riter, Connie Ontributor, Emma Ditor, Anne Elk, et al. 1980. The Book of Many Authors. P. Ublisher, Place.






share|improve this answer





















  • Cool ! Thanks !
    – Karima Rafes
    Nov 26 at 17:40















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



Anne Uthor, William Riter, Connie Ontributor, Emma Ditor, Anne Elk, et al. 1980. The Book of Many Authors. P. Ublisher, Place.






share|improve this answer





















  • Cool ! Thanks !
    – Karima Rafes
    Nov 26 at 17:40













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



Anne Uthor, William Riter, Connie Ontributor, Emma Ditor, Anne Elk, et al. 1980. The Book of Many Authors. P. Ublisher, Place.






share|improve this answer












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



Anne Uthor, William Riter, Connie Ontributor, Emma Ditor, Anne Elk, et al. 1980. The Book of Many Authors. P. Ublisher, Place.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 26 at 17:18









moewe

83.6k8107321




83.6k8107321












  • 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




Cool ! Thanks !
– Karima Rafes
Nov 26 at 17:40


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents