Function: org-man--caption/label-string

org-man--caption/label-string is a byte-compiled function defined in ox-man.el.gz.

Signature

(org-man--caption/label-string ELEMENT INFO)

Documentation

Return caption and label Man string for ELEMENT.

INFO is a plist holding contextual information. If there's no caption nor label, return the empty string.

For non-floats, see org-man--wrap-label.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-man.el.gz
;;; Internal Functions

(defun org-man--caption/label-string (element info)
  "Return caption and label Man string for ELEMENT.

INFO is a plist holding contextual information.  If there's no
caption nor label, return the empty string.

For non-floats, see `org-man--wrap-label'."
  (let ((label (org-element-property :label element))
	(main (org-export-get-caption element))
	(short (org-export-get-caption element t)))
    (cond ((and (not main) (not label)) "")
	  ((not main) (format "\\fI%s\\fP" label))
	  ;; Option caption format with short name.
	  (short (format "\\fR%s\\fP - \\fI\\P - %s\n"
			 (org-export-data short info)
			 (org-export-data main info)))
	  ;; Standard caption format.
	  (t (format "\\fR%s\\fP" (org-export-data main info))))))