Nicolas Goaziou <[email protected]> writes:
> You don't seem to use the latter. Does it still make sense to provide
> it?
No.
> I suggest to avoid calling repeatedly
> `org-export-get-footnote-definition'. Also, if the footnote reference is
> anonymous, there is no point in calling `org-element-map'. The following
> is more efficient:
>
> (format "\\footnote{%s%s}"
> (org-trim (org-export-data def info))
> ;; Only insert a label if there exist another reference to def.
> (cond
> ((not label) "")
> ((org-element-map (plist-get info :parse-tree) 'footnote-reference
> (lambda (f)
> (and (not (eq f footnote-reference))
> (equal (org-element-property :label f) label)
> (org-latex--label def info t t)))
> info t))
> (t "")))
Thanks.
I have pushed the change.
Rasmus
--
Er du tosset for noge' lårt!