Skip to content

Instantly share code, notes, and snippets.

@dcguim
Created June 17, 2015 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcguim/6654fb57dc6f682a5517 to your computer and use it in GitHub Desktop.
Save dcguim/6654fb57dc6f682a5517 to your computer and use it in GitHub Desktop.
(defun lattes-to-bibtex (filename)
"Transform the given filename to bibtexml and then parse it"
(let ((xml (lattes-to-bibtexml filename))
(i (make-instance 'lattes-handler)))
(cxml:parse xml i)
(print-hash (lh-hash i))
(loop for entry being each hash-value in (lh-hash i) do
(bibtex-runtime:write-bib-entry entry))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment