emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to simply move footnotes from one org document to another?
@ 2014-04-05  2:41 Grant Rettke
  2014-04-05 17:01 ` Richard Lawrence
  0 siblings, 1 reply; 2+ messages in thread
From: Grant Rettke @ 2014-04-05  2:41 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Hi,

Context: migrating some contents from one org document into another.
This is kind of
a re-factoring thing where none of it will be reused.

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.

Regards,

Grant Rettke | AAAS, ACM, AMA, COG, FSF, IEEE, Sigma Xi
grettke@acm.org | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to simply move footnotes from one org document to another?
  2014-04-05  2:41 How to simply move footnotes from one org document to another? Grant Rettke
@ 2014-04-05 17:01 ` Richard Lawrence
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Lawrence @ 2014-04-05 17:01 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Grant Rettke

Hi Grant,

Grant Rettke <gcr@wisdomandwonder.com> 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.)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-05 17:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-05  2:41 How to simply move footnotes from one org document to another? Grant Rettke
2014-04-05 17:01 ` Richard Lawrence

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).