Citations with quarto

A quick demo on how I set up citations on this website
Author

Karl Tayeb

Published

January 3, 2024

I use Zotero to manage my references. I have my entire library automatically dumped into a library.bib file on my computer. I created a symbolic link to this library in the root directory of my quarto website by calling ln -s /Users/karltayeb/Documents/biblatex/library.bib .

Then I added bibliography: library.bib

to the _quarto.yml file which controls global options for the website. Now we can add references by there citation key using @citekey

E.g. here is a paper (1)

This works site-wide. Also note you can change citation style using csl option. Personally I like Vancouver format since the citations just appear as numbers which is less disruptive when reading. Particularly in this setting, where we can hover over the citation to get more information I think it is a good online format.

References

1.
Arvanitis M, Tayeb K, Strober BJ, Battle A. Redefining tissue specificity of genetic regulation of gene expression in the presence of allelic heterogeneity. Am J Hum Genet [Internet]. 2022 Feb 3 [cited 2022 Jun 8];109(2):223–39. Available from: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8874223/