Hi Nicolas,

thanks again!

On Mi, Dez 21 2016, Nicolas Goaziou <m...@nicolasgoaziou.fr> 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.

Reply via email to