From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Lawrence Subject: Re: How to simply move footnotes from one org document to another? Date: Sat, 05 Apr 2014 10:01:06 -0700 Message-ID: <87ioqnk8x9.fsf@berkeley.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWTzm-0003vu-Kb for emacs-orgmode@gnu.org; Sat, 05 Apr 2014 13:03:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WWTzh-0002ca-Fs for emacs-orgmode@gnu.org; Sat, 05 Apr 2014 13:03:06 -0400 Received: from plane.gmane.org ([80.91.229.3]:35297) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWTzh-0002cR-9X for emacs-orgmode@gnu.org; Sat, 05 Apr 2014 13:03:01 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WWTze-0006Gz-PL for emacs-orgmode@gnu.org; Sat, 05 Apr 2014 19:02:58 +0200 Received: from c-67-164-45-159.hsd1.ca.comcast.net ([67.164.45.159]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Apr 2014 19:02:58 +0200 Received: from richard.lawrence by c-67-164-45-159.hsd1.ca.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Apr 2014 19:02:58 +0200 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 Cc: Grant Rettke Hi Grant, Grant Rettke writes: > Goal: Easily copy and paste sections of text along with footnote > references into the new document, > and in doing so, add the contents of the previous document to the new > document, and let org > deal with the new footnote names. > > As I write this, I realize that it isn't so simple. I'm just looking > for a place to start in terms of what > is already present and how you deal with it currently. I use the inline footnote syntax [fn:: ...] for just this reason. I think easy migration of non-inline footnotes would be a nice feature to add to Org, though doing it right would be non-trivial. A strategy that another user once described to me for dealing with this problem is the following: 1) Use a regexp search and replace to re-number the footnotes in the region of the text you want to move, giving them high numbers (e.g., prefixing each with "9999"). 2) Use Org to re-sort the footnotes in the original file, so that the newly-renumbered footnotes all appear at the end. 3) Move the text and the footnotes to the new file, which should now be easy, since the footnotes are all grouped together. 4) In the new file, use Org to re-number the footnotes back to something normal. This sounded like a pretty good idea to me, though I haven't had a need to try it myself. Hope that helps! Best, Richard (If possible, please encrypt your reply to me using my PGP key: Key ID: CF6FA646 Fingerprint: 9969 43E1 CF6F A646. See http://www.ocf.berkeley.edu/~rwl/encryption.html for more information.)