Change author list
#2822
-
I want to use the postscript feature to change the author list in case the paper is from a collaboration such as the ATLAS Collaboration https://atlas.cern/. Such a paper will contain thousands of authors, e.g. https://inspirehep.net/literature/1685420. What would be the javascript snippets to do that? I tried the following but it did not work: if (Translator.BetterTeX) {
if (tex.has.author && tex.author.includes("ATLAS Collaboration")) {
tex.remove("author");
tex.add({name: "author", value: "ATLAS Collaboration"});
}
if (tex.has.author && tex.author.includes("CMS Collaboration")) {
tex.remove("author");
tex.add({name: "author", value: "CMS Collaboration"});
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
xju2
Mar 26, 2024
Replies: 1 comment 7 replies
-
I'll need a debug log. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the prompt replies. I appreciate it.
The two collaborations often have > 1000 people in the author list. I use a name to identify if the paper belongs to the collaboration as in some cases the "ATLAS/CMS Collaboration" does not exist in the author list. It should work until the person leaves the collaboration.
I am not familiar with javascript. The following works for the collection of papers I have.