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

2016-12-23 Thread Gerald Wildgruber
Hi Nicolas, thanks again! On Mi, Dez 21 2016, Nicolas Goaziou wrote: > I would use (and, in fact, used) > > \\[\\([0-9]+\\)\\] --> \\[fn:\\1\\] > > and eyeballing the results. That works quite well; but as I'm trying to convert a whole book I also have lots of "\cite[NUMBER]{my_ref}" command

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

2016-12-21 Thread Nicolas Goaziou
Hello, Gerald Wildgruber 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,

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

2016-12-21 Thread Gerald Wildgruber
Hi Nicolas, thanks: 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 fals

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

2016-12-21 Thread Nicolas Goaziou
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 woul

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

2016-12-21 Thread Gerald Wildgruber
Hi, I'm trying to convert older orgmode documents which have plain, "[1]"-like footnotes into the newer "[fn:]" format. Can this be done automatically? In https://lists.gnu.org/archive/html/emacs-orgmode/2015-12/msg00435.html Nicolas mentions "org-footnote-normalize" which would turn old foot