From: Gerald Wildgruber <Gerald.Wildgruber@unibas.ch>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: org mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: how to convert/normalize plain footnotes into [fn:] ones
Date: Fri, 23 Dec 2016 14:57:44 +0100 [thread overview]
Message-ID: <m2r34ylpd3.fsf@Sxedia.local> (raw)
In-Reply-To: <871sx1xcr9.fsf@nicolasgoaziou.fr>
Hi Nicolas,
thanks again!
On Mi, Dez 21 2016, Nicolas Goaziou <mail@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.
prev parent reply other threads:[~2016-12-23 13:58 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
2016-12-23 13:57 ` Gerald Wildgruber [this message]
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=m2r34ylpd3.fsf@Sxedia.local \
--to=gerald.wildgruber@unibas.ch \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/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).