I was wondering if anyone knows what's the function in bibtex that allows you to check if a field exist in an entry?
What I am trying to achieve is use the bibtex-clean-entry
but as it is, it throws an error when checking @artcile
entries without journal
field.
1.What I wanna do is go through every entry
2.check if the journal field is existent
3.if not then make one and assign a placeholder
4.finally populate all the entries by assigning a value to the placeholder
At the moment I dunno how to do 2. and 3.
Basically I have the following:
(bibtex-map-entries (lambda key start end) (bibtex-make-field t)))
Which will try to make a bibtex field, but the problem is that it requires to pass in an key=>value, argument (which I don't know how) for the name of the field and its value as well.
Also the above code is not doing any checking whether the field already exist?
Any help to modifying it to do what I want will be highly appreciated it!