Skip to content

Change author list #2822

Answered by xju2
xju2 asked this question in Q&A
Mar 25, 2024 · 1 comments · 7 replies
Discussion options

You must be logged in to vote

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.

if (Translator.BetterTeX) {
  const authors = zotero.creators.filter(cr => cr.creatorType == 'author')

  if (authors.length > 1000 && tex.has.author && tex.has.author.bibtex.includes("Ju, X.")) {
    tex.add({name: "author", value: new String("ATLAS Collaboration")}); 
  }

  if (a…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@retorquere
Comment options

@xju2
Comment options

@retorquere
Comment options

@xju2
Comment options

Answer selected by xju2
@retorquere
Comment options

@xju2
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants