implements automatic bibtex integrity