The Stacks numbers your citations and builds a reference list at the end of the publication, ordered by first appearance.
Cite a paper with a DOI¶
Type
:refwhere the citation goes.Select exactly those four characters, with no surrounding spaces.
Press ⌘+K (Ctrl+K on Windows) and paste the DOI as a URL, like
https://doi.org/10.1038/nature07670.
For several citations in a row, separate each :ref link with a single space.
Cite software and other sources without a DOI¶
Add a
:reflink pointing at the source’s URL, like a GitHub repository.At the end of the doc, after the acknowledgments, add a
:::bibtexblock with a@Miscentry whoseurlexactly matches that link.
:::bibtex
@Misc{ arcadia-microscopy-tools,
title = {arcadia-microscopy-tools},
author = {Arcadia Science},
year = {2026},
url = {https://github.com/Arcadia-Science/arcadia-microscopy-tools}
}
:::You can put several entries in one block, each starting with @ on its own line.
Don’t add BibTeX for sources that have a DOI: The Stacks looks those up automatically.
Other uses of ref¶
The ref keyword is also used to link to a figure or table within a publication: see Referencing figures and tables.