Function: org-latex--delayed-footnotes-definitions
org-latex--delayed-footnotes-definitions is a byte-compiled function
defined in ox-latex.el.gz.
Signature
(org-latex--delayed-footnotes-definitions ELEMENT INFO)
Documentation
Return footnotes definitions in ELEMENT as a string.
INFO is a plist used as a communication channel.
Footnotes definitions are returned within "\\footnotetext{}" commands.
This function is used within constructs that don't support
"\\footnote{}" command (e.g., an item tag). In that case,
"\\footnotemark" is used within the construct and the function
just outside of it.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox-latex.el.gz
(defun org-latex--delayed-footnotes-definitions (element info)
"Return footnotes definitions in ELEMENT as a string.
INFO is a plist used as a communication channel.
Footnotes definitions are returned within \"\\footnotetext{}\"
commands.
This function is used within constructs that don't support
\"\\footnote{}\" command (e.g., an item tag). In that case,
\"\\footnotemark\" is used within the construct and the function
just outside of it."
(mapconcat
(lambda (ref)
(let ((def (org-export-get-footnote-definition ref info)))
(format "\\footnotetext[%d]{%s%s}"
(org-export-get-footnote-number ref info)
(org-trim (org-latex--label def info t t))
(org-trim (org-export-data def info)))))
;; Find every footnote reference in ELEMENT.
(letrec ((all-refs nil)
(search-refs
(lambda (data)
;; Return a list of all footnote references never seen
;; before in DATA.
(org-element-map data 'footnote-reference
(lambda (ref)
(when (org-export-footnote-first-reference-p ref info)
(push ref all-refs)
(when (eq (org-element-property :type ref) 'standard)
(funcall search-refs
(org-export-get-footnote-definition ref info)))))
info)
(reverse all-refs))))
(funcall search-refs element))
""))