typst / typst

A new markup-based typesetting system that is powerful and easy to learn.
https://typst.app
Apache License 2.0
34.59k stars 921 forks source link

APA in-text citation is incorrect, uses number instead, EDIT: Used `american-physiological-society` instead of `american-psychological-association` #4824

Closed QazCetelic closed 2 months ago

QazCetelic commented 2 months ago

Description

Citations don't render as APA style, despite setting citation style (#set cite(style: "american-physiological-society")).

Here I reference the source @aggarwal_data_2015 as inline citation.
This should have been either Aggarwal (2015) or (Aggarwal, 2015)

wrong_citation

None of the variants work either.

variants_not_working

Reproduction URL

https://typst.app/project/rcu1YJ9yJM1Hu8y4SGCvlT

Operating system

Linux

Typst version

laurmaedje commented 2 months ago

In your reproduction, you have american-physiological-society in the set rules and american-psychological-association in the bibliography call. If you set american-psychological-association (APA) in your set rules, then it should work as expected.