From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: footnotes export verbatim Date: Tue, 26 Feb 2013 15:35:38 -0700 Message-ID: References: <87bobf3ten.fsf@gmail.com> <87txp63n7l.fsf@gmail.com> <87hal63eei.fsf@gmail.com> <87ehg5zuqe.fsf@gmail.com> <87ppzoyfvf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UATNW-0004KL-3X for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 17:52:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UATNT-0006C0-Mg for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 17:52:05 -0500 Received: from mail-we0-x233.google.com ([2a00:1450:400c:c03::233]:37500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAT7b-0007di-Jt for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 17:35:39 -0500 Received: by mail-we0-f179.google.com with SMTP id p43so3976092wea.24 for ; Tue, 26 Feb 2013 14:35:38 -0800 (PST) In-Reply-To: <87ppzoyfvf.fsf@gmail.com> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org On 2/25/13, Nicolas Goaziou wrote: > I think we're not talking about the same thing. The fix allows empty > lines in regular footnote definitions, not inline ones. This thread's subject is inline footnotes, in which paragraphs worked well for me in the old exporter and do not work for me now. So your reply made it seem like you had fixed them. > That hook function can be added in `org-export-before-parsing-hook'. That doesn't seem to work for me. After a great deal of effort I came up with this: (add-hook 'org-export-before-parsing-hook 'alpha-org-export-fix-inline-footnotes) (defun alpha-org-export-fix-inline-footnotes (_back-end) "Try to get paragraphs to work in inline footnotes again." ;; this is both slow and buggy ;; ;; replace every set of blank lines in the buffer with ;; \par. what i really want is to do so only in ;; footnotes and to not squeeze multiple blank lines. ;; ;; this merely does on whole buffer: ;; (while (re-search-forward from nil t) ;; (replace-match to t)) (alpha-replace-re-in-buffer "\\(\n[[:blank:]]*\\)*\n" "\n\\\\par\n") (org-footnote-normalize) (alpha-replace-re-in-buffer "\\\\par" "\n")) I am past my limit. It produces incorrect output: this should work without any problems. this should work without any problems.[1] this should work without any problems. this should work without any problems. Footnotes _________ [1] this should work. ******* test case this should work without any problems. this should work without any problems.[2] this should work without any problems. this should work without any problems. Samuel -- The Kafka Pandemic: [http://thekafkapandemic.blogspot.com] The disease DOES progress. MANY people have died from it. ANYBODY can get it. There is no hope without action. Footnotes _________ [1] DEFINITION NOT FOUND. [2] this should work. this should work.