From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xavier Garrido Subject: Bad footnotes when including org files Date: Sun, 16 Mar 2014 00:44:49 +0100 Message-ID: <5324E5F1.5080207@gmail.com> 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]:34660) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOyG9-0003Zx-Tc for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 19:45:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOyG5-0004x2-HV for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 19:44:57 -0400 Received: from mail-we0-x22e.google.com ([2a00:1450:400c:c03::22e]:52438) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOyG5-0004wy-9Z for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 19:44:53 -0400 Received: by mail-we0-f174.google.com with SMTP id t60so3323059wes.19 for ; Sat, 15 Mar 2014 16:44:51 -0700 (PDT) Received: from [192.168.1.41] (137.89.195.77.rev.sfr.net. [77.195.89.137]) by mx.google.com with ESMTPSA id pm2sm17333194wic.0.2014.03.15.16.44.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 15 Mar 2014 16:44:50 -0700 (PDT) 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" Hi Orgers, I am having some troubles with several org files that I want to include into one general org file. To do that I use the #+INCLUDE: keywords and actually, everything is working well until I add some footnotes in both files. Let me show you a minimal example where the footnote numbering is getting weird a.org : ------- * A1 This is A1 section[fn:1]. * A2 This is A2 section. * Footnotes [fn:1] this is a footnote in A file. b.org : ------- * B1 This B1 section[fn:1]. * B2 This B2 section. * Footnotes [fn:1] this a footnote in B file. ab.org : -------- #+INCLUDE: "a.org" :minlevel 1 #+INCLUDE: "b.org" :minlevel 1 When I export to LaTeX the latest file, I get two footnotes with the same number. The problem can be solved by changing the label of the second footnote to [fn:2] but it means that I have to reorganize and reorder footnotes within all the org files I will include. I am wondering if it is possible to run, for example, =org-footnote-renumber-fn:N= function when including files in such way the user will not have to take care footnote labels. Thanks for your help, Xavier