https://github.com/gesistsa/bibcon
Fast BibTeX condenser for Quarto / RMarkdown documents
https://github.com/gesistsa/bibcon
bibtex markdown quarto
Last synced: about 1 year ago
JSON representation
Fast BibTeX condenser for Quarto / RMarkdown documents
- Host: GitHub
- URL: https://github.com/gesistsa/bibcon
- Owner: gesistsa
- Created: 2023-01-04T14:13:46.000Z (over 3 years ago)
- Default Branch: v0.0
- Last Pushed: 2024-03-06T16:52:10.000Z (over 2 years ago)
- Last Synced: 2025-04-26T09:39:44.089Z (about 1 year ago)
- Topics: bibtex, markdown, quarto
- Language: Rust
- Homepage:
- Size: 42 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# bibcon
The purpose of *bibcon* (BibTeX condenser) is to extract all references cited in Quarto / RMarkdown documents from a main BibTeX library to a "condensed" BibTeX file.
This is a fast (and functioning) reimplementation of [condensebib](https://github.com/andybega/condensebib) by Andreas Beger.
Please pay attention that this software is called *bibcon*, not *Bitcoin*.
# install
Please note that this software is still super experimental
```bash
## install cargo from here: https://doc.rust-lang.org/cargo/getting-started/installation.html
cargo install --git https://github.com/gesistsa/bibcon
```
# usage
`weat.qmd` contains 5 unique citations, whereas `weat.bib` contains 6 entries. The following generates BibTeX of only 5 entries.
```bash
bibcon tests/weat.qmd -b tests/weat.bib
```
`r1.rmd` and `r2.rmd` contain 4 unique citations, whereas `main.bib` contains 12 entries.
```bash
bibcon -b tests/main.bib tests/r1.rmd tests/r2.rmd
```