[Top][All Lists]

[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) "")))
         (format "\\sidenote%s{%s}" offset (org-trim (org-export-data def 
         ;; 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,

Thomas S. Dye

reply via email to

[Prev in Thread] Current Thread [Next in Thread]