Function: org-latex--wrap-label
org-latex--wrap-label is a byte-compiled function defined in
ox-latex.el.gz.
Signature
(org-latex--wrap-label ELEMENT OUTPUT INFO)
Documentation
Wrap label associated to ELEMENT around OUTPUT, if appropriate.
INFO is the current export state, as a plist. This function
should not be used for floats. See
org-latex--caption/label-string.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox-latex.el.gz
(defun org-latex--wrap-label (element output info)
"Wrap label associated to ELEMENT around OUTPUT, if appropriate.
INFO is the current export state, as a plist. This function
should not be used for floats. See
`org-latex--caption/label-string'."
(if (not (and (org-string-nw-p output) (org-element-property :name element)))
output
(concat (format "\\phantomsection\n\\label{%s}\n"
(org-latex--label element info))
output)))