[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] how to convert/normalize plain footnotes into [fn:] ones
From: |
Gerald Wildgruber |
Subject: |
Re: [O] how to convert/normalize plain footnotes into [fn:] ones |
Date: |
Fri, 23 Dec 2016 14:57:44 +0100 |
User-agent: |
mu4e 0.9.17; emacs 26.0.50.1 |
Hi Nicolas,
thanks again!
On Mi, Dez 21 2016, Nicolas Goaziou <address@hidden> 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}" commands from TeX; and these all
give false positives with the regex above. Actually I couldn't figure
out what a regex would have to look like that excludes occurences of the
mentioned expression if they are preceded by "cite".
>> 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.
Yes, I posted the problem on the pandoc mailing list and Albert
Krewinkel kindly fixed it immediately and pushed the code to the dev
version of pandoc:
https://github.com/jgm/pandoc/commit/d27188ad309feb9a76f6dc3d816ad78722078fe1
I checked out the haskell source, compiled it and it works perfectly
now! The org writer produces the correct footnote format.
Gerald.