Skip to content

Instantly share code, notes, and snippets.

@dcguim
Created June 17, 2015 23:01
Show Gist options
  • Save dcguim/b6ec04fa225850bc75f6 to your computer and use it in GitHub Desktop.
Save dcguim/b6ec04fa225850bc75f6 to your computer and use it in GitHub Desktop.
(defun write-bib-entry (entry &optional (stream *standard-output*))
(format stream "~&@~A{~A"
(bib-entry-type entry)
(bib-entry-cite-key entry))
(loop for field being each hash-key in (bib-entry-dict entry)
and value being each hash-value in (bib-entry-dict entry)
do (format stream ",~% ~A = {~A}" field value))
(format stream "~%}~%"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment