From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas S. Dye Subject: Footnote attributes Date: Fri, 15 Jan 2016 04:52:40 -1000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aK5kM-0006W7-RA for emacs-orgmode@gnu.org; Fri, 15 Jan 2016 09:53:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aK5kJ-0008W3-Lp for emacs-orgmode@gnu.org; Fri, 15 Jan 2016 09:53:02 -0500 Received: from gproxy7-pub.mail.unifiedlayer.com ([70.40.196.235]:37342) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1aK5kJ-0008Vp-Dt for emacs-orgmode@gnu.org; Fri, 15 Jan 2016 09:52:59 -0500 Received: from [98.155.37.29] (port=62904 helo=manifi) by box472.bluehost.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.84) (envelope-from ) id 1aK5k4-0002G6-G4 for emacs-orgmode@gnu.org; Fri, 15 Jan 2016 07:52:44 -0700 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode 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