typst / hayagriva

Rusty bibliography management.
Apache License 2.0
289 stars 44 forks source link

All authors are displayed instead of `et al.` in second and subsequent citations #141

Closed nrth901 closed 3 months ago

nrth901 commented 3 months ago

From Typst v0.11.0 (and Hayagriva v0.5.2), references cited multiple times seem to show all authors after the second time, which is incorrect.

When using Typst v0.10.0/Hayagriva v0.5.1, rendered correctly: citetest1-v0 5 1

However, when using Typst v0.11.0/Hayagriva v0.5.2, all authors are shown: citetest1-v0 5 2

According to the citation style, in-text citation should be shown as former one.

I used APA style this time, but it seems this phenomenon occurs when using other author-date styles.

Typst source and bib file are as follows: Source:

#set page(height: auto)

This is typst v0.11.0/hayagriva v0.5.2.

This is test @grady.
This is test @grady.

This is also test @test.
This is also test @test.

#bibliography("citetest.bib", style: "american-psychological-association")

citetest.bib:

@article{grady,
  title = {Emotions in storybooks: A comparison of storybooks that represent ethnic and racial groups in the United States},
  author = {Grady, J. S. and Her, M. and Moreno, G. and Perez, C. and Yelinek, J.},
  journaltitle = {Psychology of Popular Media Culture},
  volume = {8},
  issue = {3},
  pages = {207--217},
  doi = {10.1037/ppm0000185},
  date = {2019}
}

@article{test,
author = {Arthur B Cummings and David Eftekhary and Frank G House and Ian Jackson},
title = {The accurate determination of college students'
coefficients of friction},
journal = {Journal of Sketchy Physics},
volume = {13},
year = {2003},
number = {2},
pages = {46--129}
}