How to add a field to an entry?

Issue #47 resolved
Former user created an issue

Hello, as recommended, I downloaded the latest version from bzr. I am successfully parsing a bibtex file but I would like to add a field to each entry. However, this returns an error:

from pybtex.database.input import bibtex
bibRefs = bibtex.Parser().parse_file(bibtexFile)
bibRefs.entries["test"]["file"] = []
...
TypeError: 'Entry' object does not support item assignment

How should I do it? Thanks, TF

Comments (3)

  1. Log in to comment