From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: ODT export: Issues with `org-export-footnote-first-reference-p' Date: Tue, 10 Feb 2015 13:56:47 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLAJD-0003gM-CD for emacs-orgmode@gnu.org; Tue, 10 Feb 2015 07:52:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLAJ7-0000Xu-9c for emacs-orgmode@gnu.org; Tue, 10 Feb 2015 07:52:55 -0500 Received: from mail2.b1.hitrost.net ([91.185.211.205]:51874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLAJ7-0000XT-2r for emacs-orgmode@gnu.org; Tue, 10 Feb 2015 07:52:49 -0500 In-reply-to: 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 Hi, Thanks for this. You have [fn:1] footdef1[fn:2] [fn:2] footdef2 What do you expect to see in ODT? Presumably not a footnote in a footnote, since LibreOffice doesn't allow you to place one. An ODT cross-reference to the footnote? That makes sense, but should that be achieved by footnoting inside a footnote, or is the appropriate thing to do to use a dedicated target and link? [fn:1] footdef1, see also [[thatotherfootnote]]. [fn:2] <>footdef2 That seems to works nicely e.g. in HTML export. But I get an error message when I try it in ODT export (OpenDocument export failed: number-or-marker-p, nil -- can't be more detailed at the moment because my debugger doesn't seem to work correctly). So either way, there seems to be something that needs fixing. Yours, Christian Vaidheeswaran writes: > The attached file, when exported to ODT fails to open in LibreOffice > exporter. The reason failure is that the exported __XML__ file has > "nested footnote definiton" i.e., a footnote definition within a > footnote definiton. In concrete terms, there is some confusion wrt > the return value of `org-export-footnote-first-reference-p'. > > (Hint: Start with `org-odt-footnote-reference'. If my hunch is right, > the `org-export-data' invocation there may also need a fix). > > I will be happy to circulate a patch to ox-odt.el.