Generate a nice Bibtex or Latex bibliography according to the document content