hayagriva icon indicating copy to clipboard operation
hayagriva copied to clipboard

author-cite forces creation of unnecessary disambiguators

Open retroflexivity opened this issue 7 months ago • 1 comments

Description

When there are two #cite(link, form: "author") citations to two works by the same author, literal disambiguators (letters a,b,... after the year) are added even if the works have different years.

#cite(<carlson1977referencekindsenglish>, form: "author")
#cite(<carlson2003weakindefinites>, form: "author")

@carlson1977referencekindsenglish

#bibliography("ref.bib", style: "chicago-author-date")

with the following ref.bib file

@thesis{carlson1977referencekindsenglish,
  title = {Reference to Kinds in {{English}}},
  author = {Carlson, Gregory Norman},
  date = {1977},
}

@article{carlson2003weakindefinites,
  title = {Weak Indefinites},
  author = {Carlson, Gregory Norman},
  date = {2003-07-17},
}


produces the following output.

Image

Normally, literal disambiguators are only used when there are two works of the same author-date, which otherwise cannot be disambiguated in references. This is not the case here, so the following would be expected.

Image


Curiously, this only happens when there is a year-containing citation somewhere. The following

#cite(<carlson1977referencekindsenglish>, form: "author")
#cite(<carlson2003weakindefinites>, form: "author")

#bibliography("ref.bib", style: "chicago-author-date")

produces this (notice that citations become name-surname, like if the compiler tries to disambiguate the authors by their names)

Image

Reproduction URL

No response

Operating system

Linux

Typst version

  • [x] I am using the latest version of Typst

retroflexivity avatar May 19 '25 17:05 retroflexivity

@reknih I'm guessing this should be in the hayagriva repo?

Enivex avatar May 19 '25 17:05 Enivex