From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vaidheeswaran Subject: Re: ODT export: Issues with `org-export-footnote-first-reference-p' Date: Thu, 12 Feb 2015 10:14:04 +0530 Message-ID: <54DC2F94.90109@gmail.com> References: <54DA141C.1080407@gmail.com> <8761b9xxo9.fsf@nicolasgoaziou.fr> <54DADEA3.8070701@gmail.com> <87k2zow3sq.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLleL-0001hx-C5 for emacs-orgmode@gnu.org; Wed, 11 Feb 2015 23:45:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLleF-0007ZD-F4 for emacs-orgmode@gnu.org; Wed, 11 Feb 2015 23:45:13 -0500 Received: from plane.gmane.org ([80.91.229.3]:55694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLleF-0007WT-9P for emacs-orgmode@gnu.org; Wed, 11 Feb 2015 23:45:07 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YLleD-0001FI-BE for emacs-orgmode@gnu.org; Thu, 12 Feb 2015 05:45:05 +0100 Received: from 117.96.15.187 ([117.96.15.187]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Feb 2015 05:45:05 +0100 Received: from vaidheeswaran.chinnaraju by 117.96.15.187 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Feb 2015 05:45:05 +0100 In-Reply-To: <87k2zow3sq.fsf@nicolasgoaziou.fr> 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@gnu.org 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.