[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Footnote attributes
From: |
Thomas S . Dye |
Subject: |
[O] Footnote attributes |
Date: |
Fri, 15 Jan 2016 04:52:40 -1000 |
User-agent: |
mu4e 0.9.15-8e43e8c; emacs 24.5.1 |
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