Aloha all, I'm trying to hijack Org footnotes to export \sidenotes with an optional offset parameter to LaTeX. I can't figure out how to specify and access the offset parameter for a footnote.
I have an attr_latex line in front of the footnote-definition and footnote-reference, but I can't figure out how to retrieve it. Is this possible? If so, how? I have this, but offset is always the empty string: (let* ((def (org-export-get-footnote-definition footnote-reference info)) (attr (org-export-read-attribute :attr_latex footnote-reference)) (offs (plist-get attr :offset)) (offset (if offs (format "[%s]" offs) ""))) (concat (format "\\sidenote%s{%s}" offset (org-trim (org-export-data def info))) ;; Retrieve all footnote references within the footnote and ;; add their definition after it, since LaTeX doesn't support ;; them inside. (org-latex--delayed-footnotes-definitions def info))) All the best, Tom -- Thomas S. Dye http://www.tsdye.com