typst / hayagriva

Rusty bibliography management.
Apache License 2.0
320 stars 48 forks source link

Wrong APA Style. Does not match with Zotero #153

Open dimoralesb opened 6 months ago

dimoralesb commented 6 months ago

Description

The default APA Style does not follow style rules (Web App, last version). In the first image, Typst uses the authors' first names in the in-text reference when only the last name should be displayed. The references have inconsistencies with the authors; for example, sometimes the reference is Hills, Thomas T., but in another reference is Hills T. T.

typst

When using the same "apa. csl" file from Zotero, Typst takes both articles from 2015 as having the same authors. APA states that using "a" and "b" after the year only when they are the same authors, not when they differ in some authors.

typst_apa_file_zotero

Here is the Zotero citation for comparison:

Zotero

Here is the BibLaTeX reference.

@article{hillsExplorationExploitationSpace2015,
  title = {Exploration versus Exploitation in Space, Mind, and Society},
  author = {Hills, Thomas T. and Todd, Peter M. and Lazer, David and Redish, A. David and Couzin, Iain D.},
  date = {2015-01},
  journaltitle = {Trends in Cognitive Sciences},
  shortjournal = {Trends in Cognitive Sciences},
  volume = {19},
  number = {1},
  pages = {46--54},
  issn = {13646613},
  doi = {10.1016/j.tics.2014.10.004},
  url = {https://linkinghub.elsevier.com/retrieve/pii/S1364661314002332},
  urldate = {2023-09-28},
  langid = {english},
  annotation = {324 citations (Crossref/DOI) [2024-03-19]},
}

@article{hillsForagingSemanticFields2015,
  title = {Foraging in {{Semantic Fields}}: {{How We Search Through Memory}}},
  shorttitle = {Foraging in {{Semantic Fields}}},
  author = {Hills, Thomas T. and Todd, Peter M. and Jones, Michael N.},
  date = {2015-07},
  journaltitle = {Topics in Cognitive Science},
  shortjournal = {Top Cogn Sci},
  volume = {7},
  number = {3},
  pages = {513--534},
  issn = {17568757},
  doi = {10.1111/tops.12151},
  url = {https://onlinelibrary.wiley.com/doi/10.1111/tops.12151},
  urldate = {2023-08-14},
  langid = {english},
  annotation = {77 citations (Crossref/DOI) [2024-03-19]},
}

@article{hillsOptimalForagingSemantic2012a,
  title = {Optimal Foraging in Semantic Memory.},
  author = {Hills, Thomas T. and Jones, Michael N. and Todd, Peter M.},
  date = {2012},
  journaltitle = {Psychological Review},
  shortjournal = {Psychological Review},
  volume = {119},
  number = {2},
  pages = {431--440},
  issn = {1939-1471, 0033-295X},
  doi = {10.1037/a0027373},
  url = {http://doi.apa.org/getdoi.cfm?doi=10.1037/a0027373},
  urldate = {2023-05-15},
  langid = {english},
  annotation = {208 citations (Crossref/DOI) [2024-03-19]},
}

Reproduction URL

https://typst.app/project/rFpj5tDFiPCYgE_ANE3hDB

Operating system

Web app

Typst version