A Yarner plugin for citations using a BibTeX bibliography.
Example:
Here is a Markdown source with citations and a placeholder for the references:
```markdown
Yarner is a command line tool for Literate Programming (@Knuth1984). Another famous Literate Programming environment is RMarkdown (@Baumer2015).
[[REFS]] ```
After processing with Yarner and yarner-bib, it produces this output:
Binaries
PATH
environmental variableUsing cargo
```
cargo install yarner-bib ```
Add a section plugin.bib
to your Yarner.toml
:
toml
[plugin.bib]
...
Cite using the BibTeX citation key, prefixed with @
:
markdown
For details, see @Doe2020.
To generate the reference list, place the placeholder in each file, or in the file given under refs-file
:
```markdown
[[REFS]] ```
The plugin allows for different options, which are all optional:
toml
[plugin.bib]
bibliography = "bibliography.bib"
style = "author-year"
refs-file = "References.md"
placeholder = "[[_REFS_]]"
link-refs = true
render-key = true
| Option | Details | Default |
|----------------|---------------------------------------------------------------------------------|----------------------|
| bibliography
| The BibTeX file to use. | bibliography.bib
|
| style
| The citation style. Either author-year
or numbered
. | author-year
|
| refs-file
| The Markdown file for central references. References in each file if not given. | none |
| placeholder
| The placeholder to replace by the list of references | [[_REFS_]]
|
| link-refs
| Add links from citations to references. | true
|
| render-key
| Render the citation key in front of each reference. | true
|