New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with APA Formatting when no author is specified #4
Comments
I don't think the bug lies in the It looks to be a problem with the |
Thanks! Given that it's not in components as high as Typst and Hayagriva, and not in components as low as CSL files, it seems to be in the intermediate citationberg @reknih ? Specifically https://github.com/typst/citationberg/blob/main/src/lib.rs#L2174-L2175 mentioned
(but it still baffles me because this issue only manifests for some citation styles) |
Do you happen to have any news on this? This is specifically a problem for online resources that often do not have an author. |
Yes, substitution doesn't work as intended. If we have the following: @online{someKey,
title = {Some Title},
url = {https://google.com},
urldate = {2024-03-11},
} Then it will produce:
As soon as I add an editor or author... @online{someKey,
editor = {Mustermann, Max},
title = {Some Title},
url = {https://google.com},
urldate = {2024-03-11},
} ...it will produce the following:
For the APA 7th edition, maybe the |
I found the problem is due to
A simple fix can be to do a silent lookup on the first This is the output from OP's bib after applying the fix:
However, the |
Description
When using references without authors, the generated output format is incorrect.
Example bib,
Expected Citation Output:
(Definition and objectives of systems development, 2016)
Actual Citation Output:
(2016)
Expected Bibliography Output:
Definition and Objectives of Systems Development. (2016, January 19). Open Textbooks for Hong Kong. https://www.opentextbooks.org.hk/ditatopic/25323
Actual Bibliography Output:
(2016, January 19). https://www.opentextbooks.org.hk/ditatopic/25323
Reproduction URL
No response
Operating system
Linux
Typst version
The text was updated successfully, but these errors were encountered: