From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: footnotes export verbatim Date: Wed, 27 Feb 2013 00:28:38 +0100 Message-ID: <87y5ealknt.fsf@gmail.com> References: <87bobf3ten.fsf@gmail.com> <87txp63n7l.fsf@gmail.com> <87hal63eei.fsf@gmail.com> <87ehg5zuqe.fsf@gmail.com> <87ppzoyfvf.fsf@gmail.com> <87621emzet.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UATx9-0003aW-Qm for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 18:28:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UATx6-00059Y-8R for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 18:28:55 -0500 Received: from mail-we0-x22c.google.com ([2a00:1450:400c:c03::22c]:58329) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UATx6-00058o-20 for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 18:28:52 -0500 Received: by mail-we0-f172.google.com with SMTP id x10so4064008wey.17 for ; Tue, 26 Feb 2013 15:28:51 -0800 (PST) In-Reply-To: <87621emzet.fsf@gmail.com> (Nicolas Goaziou's message of "Wed, 27 Feb 2013 00:24:42 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Samuel Wales Cc: emacs-orgmode@gnu.org Correcting myself: > Try the following: > > #+begin_src emacs-lisp > (defun my-par-in-inline-fn (backend) > (unless (org-export-derived-backend-p backend 'latex) > (let ((org-footnote-section "My section")) > (org-footnote-normalize) > (while (re-search-forward "\\par\\s-*" nil t) > (replace-match "\n\n"))))) > > (add-hook 'org-export-before-parsing-hook 'my-par-in-inline-fn) > #+end_src This should be: #+begin_src emacs-lisp (defun my-par-in-inline-fn (backend) (unless (org-export-derived-backend-p backend 'latex) (org-footnote-normalize) (while (re-search-forward "\\par\\s-*" nil t) (replace-match "\n\n")))) (add-hook 'org-export-before-parsing-hook 'my-par-in-inline-fn) #+end_src -- Nicolas Goaziou