Convert references to bibtex format