From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Gerald Wildgruber <Gerald.Wildgruber@unibas.ch>
Cc: org mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: how to convert/normalize plain footnotes into [fn:] ones
Date: Wed, 21 Dec 2016 21:12:26 +0100 [thread overview]
Message-ID: <871sx1xcr9.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <m2tw9xkz3z.fsf@Sxedia.local> (Gerald Wildgruber's message of "Wed, 21 Dec 2016 17:48:00 +0100")
Hello,
Gerald Wildgruber <Gerald.Wildgruber@unibas.ch> writes:
> I had actually tried that already and came up with the following regex:
>
> \([^ ]\)\(\[\)\([0-9]\) --> \1\2fn:\3
>
> i.e. three groupings: 1) no whitespace, 2) "[" and 3) a number, and then
> introducing "fn:" between "[" and the number: but it is not perfect, as
> it still gives false positives; do you have something better?
I would use (and, in fact, used)
\\[\\([0-9]+\\)\\] --> \\[fn:\\1\\]
and eyeballing the results.
> The problem unfortunately arises also by pandoc still using the now
> obsolete syntax of plain footnotes when converting (e.g. latex) to org
> mode!
I'm certain Pandoc importer will ultimately catch-up.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2016-12-21 20:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-21 14:46 how to convert/normalize plain footnotes into [fn:] ones Gerald Wildgruber
2016-12-21 15:47 ` Nicolas Goaziou
2016-12-21 16:48 ` Gerald Wildgruber
2016-12-21 20:12 ` Nicolas Goaziou [this message]
2016-12-23 13:57 ` Gerald Wildgruber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871sx1xcr9.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=Gerald.Wildgruber@unibas.ch \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).