From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: how to convert/normalize plain footnotes into [fn:] ones Date: Wed, 21 Dec 2016 16:47:17 +0100 Message-ID: <878tr9xp16.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJj6n-0002rS-2E for emacs-orgmode@gnu.org; Wed, 21 Dec 2016 10:47:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cJj6m-0002ah-9S for emacs-orgmode@gnu.org; Wed, 21 Dec 2016 10:47:13 -0500 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:35160) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cJj6m-0002aW-3E for emacs-orgmode@gnu.org; Wed, 21 Dec 2016 10:47:12 -0500 In-Reply-To: (Gerald Wildgruber's message of "Wed, 21 Dec 2016 15:46:11 +0100") 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" To: Gerald Wildgruber Cc: org mode mailing list Hello, Gerald Wildgruber writes: > I'm trying to convert older orgmode documents which have plain, > "[1]"-like footnotes into the newer "[fn:]" format. > > Can this be done automatically? You could use `query-replace-regexp' a.k.a. C-M-%. > Nicolas mentions "org-footnote-normalize" which would turn old footnotes > in new ones, but it does nothing in my case except adding a "* > Footnotes" entry. You misunderstood. `org-footnote-normalize' used to turn every footnote into [1], [2], ... whereas it now turns them into [fn:1], [fn:2],... IOW it cannot be used to convert from old syntax to new one. Regards, -- Nicolas Goaziou