Function: org-cite-wrap-citation
org-cite-wrap-citation is a byte-compiled function defined in
oc.el.gz.
Signature
(org-cite-wrap-citation CITATION INFO)
Documentation
Wrap an anonymous inline footnote around CITATION object in the parse tree.
INFO is the export state, as a property list.
White space before the citation, if any, are removed. The parse tree is modified by side-effect.
Return newly created footnote object.
Source Code
;; Defined in /usr/src/emacs/lisp/org/oc.el.gz
(defun org-cite-wrap-citation (citation info)
"Wrap an anonymous inline footnote around CITATION object in the parse tree.
INFO is the export state, as a property list.
White space before the citation, if any, are removed. The parse tree is
modified by side-effect.
Return newly created footnote object."
(let ((footnote
(list 'footnote-reference
(list :label nil
:type 'inline
:contents-begin (org-element-property :begin citation)
:contents-end (org-element-property :end citation)
:post-blank (org-element-property :post-blank citation)))))
;; Remove any white space before citation.
(org-cite--set-previous-post-blank citation 0 info)
;; Footnote swallows citation.
(org-element-insert-before footnote citation)
(org-element-adopt-elements footnote
(org-element-extract-element citation))))