From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: Soft return in footnote text? Date: Mon, 12 Mar 2018 13:27:53 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evU32-0005Df-PR for emacs-orgmode@gnu.org; Mon, 12 Mar 2018 16:27:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evU31-0004Yx-El for emacs-orgmode@gnu.org; Mon, 12 Mar 2018 16:27:56 -0400 Received: from mail-io0-x22d.google.com ([2607:f8b0:4001:c06::22d]:43336) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1evU31-0004VF-A9 for emacs-orgmode@gnu.org; Mon, 12 Mar 2018 16:27:55 -0400 Received: by mail-io0-x22d.google.com with SMTP id l12so13003084ioc.10 for ; Mon, 12 Mar 2018 13:27:54 -0700 (PDT) In-Reply-To: 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" To: Lawrence Bottorff Cc: emacs-orgmode Mailinglist On 3/12/18, Lawrence Bottorff wrote: > I'm getting carried away with a footnote and want to have it be many > paragraphs long when I export it to HTML. I can put in latex math formula= e, > and that breaks things up. But is there a way to simply have separate tex= t > paragraph in an org-mode footnote? footnotes can be separate or inline. i think you are using inline. inline is really good because it keeps the thing referred to with the thing that is referring to it. this shared locality helps prevent footnotes from getting out of sync due to edits. for this reason, i use inline footnotes exclusively. i too use multiple paragraphs in inline footnotes. in principle, i think you can use \par or something like that, but that's ugly. your idea of soft newlines is really interesting. i don't recall their behavior, so i can't answer. this might be what you are doing? i much prefer it: ad faksdn kfsd kfjans kdfn kasdfn kasf kasf [fn::first par second par.] rest of same paragraph. however, org no longer supports this directly as of the new org parser. what i do is use a filter function, which uses the new parser. this is slightly modified from something nicolas posted. (add-hook 'org-export-before-parsing-hook 'my-org-export-par-in-inline-fn= ) (defun my-org-export-par-in-inline-fn (backend) "Fix inline footnote paragraphs." (with-no-warnings (unless (org-export-derived-backend-p backend 'latex) (org-footnote-normalize) ;; =3Dalpha i guess it sticks \par in there for you (while (re-search-forward "\\\\par\\s-*" nil t) (replace-match "\n\n"))))) this works for me. it restores the previous behavior that i like. the future concern is fontification. currently this works perfectly. however, if the org fontifier starts using the new parser, and does not accommodate this style, then the inline footnote will not be fontified correctly. this has not occurred. if such a future fontifier accommodates this style, no problem. dunno if soft newlines for inline footnote paragraphs could fix that or be possible. --=20 The Kafka Pandemic: The disease DOES progress. MANY people have died from it. And ANYBODY can get it at any time. "You=E2=80=99ve really gotta quit this and get moving, because this is murd= er by neglect." --- .