Giter Site home page Giter Site logo

bibcon's Introduction

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 by Andreas Beger.

Please pay attention that this software is called bibcon, not Bitcoin.

install

Please note that this software is still super experimental

## 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.

bibcon tests/weat.qmd -b tests/weat.bib

r1.rmd and r2.rmd contain 4 unique citations, whereas main.bib contains 12 entries.

bibcon -b tests/main.bib tests/r1.rmd tests/r2.rmd

bibcon's People

Contributors

chainsawriot avatar

Stargazers

Allan Irvine avatar William Blackerby avatar  avatar Long Nguyen avatar Johannes Gruber avatar  avatar David Schoch avatar

Watchers

 avatar James Cloos avatar David Schoch avatar  avatar

bibcon's Issues

Can't detect citekeys at the beginning

https://github.com/chainsawriot/bibcon/blob/8127a5569d7b1046962bc9806b4731610aa41368/tests/r1.rmd#L1-L5

bibcon -b tests/main.bib tests/r1.rmd
@book{eddelbuettel,
author = {Eddelbuettel, Dirk},
doi = {10.1007/978-1-4614-6868-4},
isbn = {9781461468684},
publisher = {Springer New York},
title = {{Seamless R and C++ Integration with Rcpp}},
url = {http://dx.doi.org/10.1007/978-1-4614-6868-4},
year = {2013},
}

@manual{rcore,
address = {Vienna, Austria},
author = {{R Core Team}},
organization = {R Foundation for Statistical Computing},
title = {R: A Language and Environment for Statistical Computing},
url = {https://www.R-project.org/},
year = {2021},
}

It can't detect @wickham2016. This regex

https://github.com/chainsawriot/bibcon/blob/8127a5569d7b1046962bc9806b4731610aa41368/src/lib.rs#L12

depends on the initial (?P<ini>^|[\[,; -]) thing to grab cite keys. But this thing are actually optional.

panic

  • Missing files
  • Missing Entries

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.