4 thoughts on “DOI to BibTex Converter

  1. I just found something even simpler: If you run Emacs, you can use the following code to automatically insert the bibtex entry for a doi into your bibtex file:

    (defun doi-to-bib (doi)
    (interactive “sEnter the doi to expand to bibtex via crossref: “)
    (with-current-buffer (find-file-noselect (expand-file-name “~/paper-ct-tccon/ref.bib”))
    (goto-char (point-max))
    ; doi:10.1016/j.egypro.2014.12.316 to http://dx.doi.org/10.1016/j.egypro.2014.12.316
    (when (string-starts-with doi “doi:”)
    (setq doi (concat “http://dx.doi.org/” (string-remove-prefix “doi:” doi))))
    (insert (concat “\n\n”
    (string-trim
    (shell-command-to-string
    (concat
    “curl -sLH \”Accept: text/bibliography; style=bibtex\” ”
    doi)))
    “\n\n”))))

    (defun string-starts-with (s arg)
    “returns non-nil if string S starts with ARG. Else nil.”
    (cond ((>= (length s) (length arg))
    (string-equal (substring s 0 (length arg)) arg))
    (t nil)))

  2. I want to know when I read research papers then at the end there are a lot of references given. So do you have an easy way to copy paste the entry of that form from a research paper to my .bib file.
    meaning let say this link https://www.scirp.org/journal/paperinformation.aspx?paperid=55903 has a lot of references.I choose reference number 19 which is Alsafi, H.M., Abduallah, W.M. and Khan Pathan, A. (2012) IDPS: An Integrated Intrusion Handling Model for Cloud Computing Environment. International Journal of Computing and Information Technology (IJCIT). It does not have a doi. Then if I want to use this in my .bibliography then how can I do this? I as of now manually search for the paper in Google and find out and then manually generate the bibliography entry for this type. If this can be automated then let me know.
    Thanks

Leave a Reply