Function: org-docview-export

org-docview-export is a byte-compiled function defined in ol-docview.el.gz.

Signature

(org-docview-export LINK DESCRIPTION BACKEND INFO)

Documentation

Export a docview LINK with DESCRIPTION for BACKEND.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ol-docview.el.gz
(defun org-docview-export (link description backend _info)
  "Export a docview LINK with DESCRIPTION for BACKEND."
  (let ((path (if (string-match "\\(.+\\)::.+" link) (match-string 1 link)
		link))
        (desc (or description link)))
    (when (stringp path)
      (setq path (expand-file-name path))
      (cond
       ((eq backend 'html) (format "<a href=\"%s\">%s</a>" path desc))
       ((eq backend 'latex) (format "\\href{%s}{%s}" path desc))
       ((eq backend 'ascii) (format "[%s] (<%s>)" desc path))
       (t path)))))