emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] how to convert/normalize plain footnotes into [fn:] ones


From: Nicolas Goaziou
Subject: Re: [O] how to convert/normalize plain footnotes into [fn:] ones
Date: Wed, 21 Dec 2016 21:12:26 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Hello,

Gerald Wildgruber <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]