-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds citation support using a biblatex file and [pybtex](https://pybtex.org/), reactors most current citations to use it, and adds a small guide to explain how to use it. Resolves #957.
- Loading branch information
1 parent
0ebb5e6
commit cd50e74
Showing
80 changed files
with
1,099 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Citing sources | ||
|
||
All of the references and sources of the agda-unimath library are managed in a | ||
[BibLaTeX](https://www.ctan.org/pkg/biblatex) file `references.bib`, and we have | ||
a custom set of macros to work with them. | ||
|
||
The macros are as follows: | ||
|
||
<!-- | ||
We have inserted an invisible whitespace character between the first and second | ||
opening curly braces in the below examples to block the citation preprocessor | ||
from detecting them as macros. | ||
--> | ||
|
||
- `{{#cite referenceXYZ}}` will insert a citation to the reference labeled | ||
`referenceXYZ` (which must be defined in the `references.bib` file) at the | ||
current location, and add that reference to the current page's bibliography. | ||
- `{{#reference referenceXYZ}}` will add the reference labeled `referenceXYZ` | ||
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 | ||
titled `References`. | ||
|
||
Note that entries in the BibLaTeX file are expected to have all of the | ||
apropriate 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 {{#cite 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.