From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: ODT export: Issues with `org-export-footnote-first-reference-p' Date: Wed, 11 Feb 2015 21:19:12 -1000 Message-ID: References: <54DA141C.1080407@gmail.com> <8761b9xxo9.fsf@nicolasgoaziou.fr> <54DADEA3.8070701@gmail.com> <87k2zow3sq.fsf@nicolasgoaziou.fr> <54DC2F94.90109@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLo3j-0008N1-Ny for emacs-orgmode@gnu.org; Thu, 12 Feb 2015 02:19:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLo3g-0000Ef-Hc for emacs-orgmode@gnu.org; Thu, 12 Feb 2015 02:19:35 -0500 Received: from gproxy5-pub.mail.unifiedlayer.com ([67.222.38.55]:44970) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1YLo3g-0000E9-B8 for emacs-orgmode@gnu.org; Thu, 12 Feb 2015 02:19:32 -0500 In-Reply-To: <54DC2F94.90109@gmail.com> (Vaidheeswaran's message of "Thu, 12 Feb 2015 10:14:04 +0530") 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: Vaidheeswaran Cc: emacs-orgmode@gnu.org Aloha Vaidheeswaran, This is an odd example that I don't recall having seen in any publication. I don't doubt examples might exist, but don't remember having seen one. Can you point me to a real-world example of a footnote referring to a subsequent footnote that I might reference either on-line or in my local library? All the best, Tom Vaidheeswaran writes: > On Thursday 12 February 2015 02:42 AM, Nicolas Goaziou wrote: >> It does, e.g., when exporting to LaTeX. This is an odt limitation. So, >> I disagree, `org-export-footnote-first-reference-p' is correct here. > > > Let me put my question this way: > > What changes need to be made in ox.el and/or ox-odt.el so that the > snippet I shared produces the right XML acceptable for LibreOffice. > > text1 [fn:1] > > text2 [fn:2] > > [fn:1] footdef1[fn:2] > > [fn:2] footdef2 > > For purposes of ODT backend, we need to find the 'site of first > reference' THAT IS OUTSIDE OF A foonote definition. Would it be > possible for you to augment the API so that I can request such a > reference. > > NOTE: The XML that is emitted by the ODT exporter, suggests that the > '[fn:2]' occurring in '[fn:1]' is treated as site of first > reference. We would like to make '[fn:2]' occurring next to 'text2' be > treated as the site of first reference. If we do that, everything > will be just right. > > > > > -- Thomas S. Dye http://www.tsdye.com