Function: org-link-doi-export
org-link-doi-export is a byte-compiled function defined in
ol-doi.el.gz.
Signature
(org-link-doi-export PATH DESC BACKEND INFO)
Documentation
Export a "doi" type link.
PATH is the DOI name. DESC is the description of the link, or nil. BACKEND is a symbol representing the backend used for export. INFO is a plist containing the export parameters.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ol-doi.el.gz
(defun org-link-doi-export (path desc backend info)
"Export a \"doi\" type link.
PATH is the DOI name. DESC is the description of the link, or
nil. BACKEND is a symbol representing the backend used for
export. INFO is a plist containing the export parameters."
(let ((uri (concat org-link-doi-server-url path)))
(pcase backend
(`html
(format "<a href=\"%s\">%s</a>" uri (or desc uri)))
(`latex
(if desc (format "\\href{%s}{%s}" uri desc)
(format "\\url{%s}" uri)))
(`ascii
(if (not desc) (format "<%s>" uri)
(concat (format "[%s]" desc)
(and (not (plist-get info :ascii-links-to-notes))
(format " (<%s>)" uri)))))
(`texinfo
(if (not desc) (format "@uref{%s}" uri)
(format "@uref{%s, %s}" uri desc)))
(_ uri))))