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
Is there a way to customize the citation style without using a predefined style? Let’s say I want the [1]
to be put in bold or superscript it?
You can use show rules for that:
// for bold citation
#show cite: it => [
*#it*
]
// for superscript citation
#show cite: it => [
#super[#it]
]
If there are any questions left, don’t hesitate to ask again
PS: It might have been useful to open a new question for this, because it is not closely related. Also, it is already marked as solved, so it’s less likely your question gets answered (quickly).