UPDATE 6/4/15: this post was previously a page but was removed when I reorganised the sidebar. Check out the rbib project on GitHub.

This page contains a couple of small Ruby utilities I’ve written.

BibTeX parser

A parser for BibTeX databases. Mostly intended for transforming the entries in some way, such as deleting unneeded keys. But it also works as a general purpose BibTeX interface.

Example: remove all the url fields from a database:

BibTeX::Parser.parse('input.bib').map do |entry|
  entry.reject_fields [:url]
end.save('stripped.bib')

Source code: git clone https://nickg@github.com/nickg/rbib.git

Released under the GPLv3.

Future:

  • Documentation
  • Gem installer