Citing sources
Created on 2024-03-12.
Last modified on 2024-10-15.
All of the references and sources of the agda-unimath library are managed in a
BibLaTeX file references.bib
, and we have
a custom set of macros to work with them.
The macros are as follows:
{{#cite referenceXYZ}}
will insert a citation to the reference labeledreferenceXYZ
(which must be defined in thereferences.bib
file) at the current location, and add that reference to the current page’s bibliography.{{#reference referenceXYZ}}
will add the reference labeledreferenceXYZ
to the current page’s bibliography without inserting a citation.{{#bibliography}}
is a marker for where the bibliography of the current page should be inserted. If no such marker is found and the bibliography is inhabited, it will be inserted at the bottom of the page in a new section titledReferences
. However, this feature of the preprocessor is still experimental, and a better positioning of theReferences
section is achieved by manually inserting it.
Note that entries in the BibLaTeX file are expected to have all of the
appropriate fields defined according to their type. For instance, @book
s
must have a defined field for publisher
and year
. If this information is
not available, please define them as empty fields. E.g. publisher = {},
.
If you are unsure about how to structure your BibLaTeX entry, it may be useful
to know that the references are checked by the linkcheck
GitHub workflow, so
when you post your pull request to agda-unimath you can refer to the CI for
possible issues.
Note: If the citation label of your reference is not being generated
properly, we support a custom citeas
field that can be used to overwrite it.
For instance, Homotopy Type Theory: Univalent Foundations of Mathematics
should be cited as [UF13], and to make it so we have set
citeas = {UF13}
for its BibLaTeX entry. Keep in mind that if the citation
label is not being generated properly, then it is likely that the author list is
not being parsed properly either.
References
- [UF13]
- The Univalent Foundations Program. Homotopy Type Theory: Univalent Foundations of Mathematics. Institute for Advanced Study, 2013. URL: https://homotopytypetheory.org/book/, arXiv:1308.0729.
Recent changes
- 2024-10-15. Fredrik Bakke. Minor search engine optimizations (#1197).
- 2024-09-01. Egbert Rijke. Cisinski’s Formalization of Higher Categories (#1171).
- 2024-03-12. Fredrik Bakke. Bibliographies (#1058).