How to customize citations, to be (author, year) instead of [number]?

Hi,
In science/astronomy, it is more common to give citations styled “(Einstein 1905)” instead of “[1]”. Is there a possibility to customize citations in such a way, that the bracket includes the author and year in any sort? ([Einstein 1905], [E. 1905], (Einstein, 1905), Einstein (1905), …)
Ideally, the reference should still be taken from a .bib file.
Thanks in advance!

Hi there!
You can set the citation style
I think in your case it would be " apa", which would result in (Einstein, 1905), so

#bibliography("works.bib", style: "apa")

This code also changes the citation style in the bibliography. If you don’t want that, you can also do

#set cite(style: "apa")

in the beginning of your document.
If there are any questions left, don’t hesitate to ask again :slight_smile:

2 Likes