would like programmatic example of pybtex parse + change
Howdy, the Friendly introduction is nice but perhaps not quite as fully featured as I'd like. Hard to find an API in the docs.
Here's what I like to see: a programmatic example where you: - input a bibliography (bibtex format) - iterate through all the papers - change every name in each paper from "Firstname Lastname" to "Firstname 'Dirty Old Man' Lastname" - output the bibliography (also bibtex format)
I'm having trouble with a) figuring out how to input and output a bib from the same file (there's some naming conflicts that appear tricky) and b) figuring out how to manipulate a specific bibliographic entry in the database. Great to have examples of both of these! Thanks, cool package.
Comments (4)
-
Account Deleted -
Account Deleted +1, it would be good to have some simple examples to get started.
-
- marked as enhancement
-
- changed component to docs
- Log in to comment
Hi! I would very much like this too. I'm currently working on this and would be great to know how to programatically expand an Entry. So to read, expand and write the new file. (Source: https://github.com/olovholm/NIME/blob/master/bibtexparser.py)