put references into BibTeX file