From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: footnotes export verbatim Date: Mon, 25 Feb 2013 09:09:08 +0100 Message-ID: <87ppzoyfvf.fsf@gmail.com> References: <87bobf3ten.fsf@gmail.com> <87txp63n7l.fsf@gmail.com> <87hal63eei.fsf@gmail.com> <87ehg5zuqe.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9t7r-0004V5-AD for emacs-orgmode@gnu.org; Mon, 25 Feb 2013 03:09:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9t7l-0006Bo-4C for emacs-orgmode@gnu.org; Mon, 25 Feb 2013 03:09:31 -0500 Received: from mail-wi0-f178.google.com ([209.85.212.178]:40227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9t7k-0006B9-SY for emacs-orgmode@gnu.org; Mon, 25 Feb 2013 03:09:25 -0500 Received: by mail-wi0-f178.google.com with SMTP id hq4so175621wib.11 for ; Mon, 25 Feb 2013 00:09:22 -0800 (PST) In-Reply-To: (Samuel Wales's message of "Sun, 24 Feb 2013 13:12:56 -0700") 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 Samuel Wales writes: > On 2/24/13, Nicolas Goaziou wrote: >> Samuel Wales writes: >>> On 2/20/13, Nicolas Goaziou wrote: >>>> The basic syntax is similar to the one used by `footnote.el', i.e. >>>> a footnote is defined in a paragraph that is started by a footnote >>>> marker in square brackets in column 0, no indentation allowed. If you >>>> need a paragraph break inside a footnote, use the LaTeX idiom `\par'. >>> >>> I am aware of that, but blank lines were allowed after a while. One >>> issue was filling. >>> >>> Even \par fails to work now. :( >> >> It should now be fixed. Just replace \par with an empty line. > > The fix does not work. > > I tried blank line and it still exported verbatim. > > I then tried \par, and it still filled the footnote and inserted > "\par" into it. I think we're not talking about the same thing. The fix allows empty lines in regular footnote definitions, not inline ones. > If this cannot be fixed, then I need some way of filtering to achieve > it. Filtering cannot help you here, since you need to, at least, agree with the structure of the document being parsed. If you want lists, tables, paragraphs... in a footnote, regular definitions are the way to go. If, for some reason, you refuse to use regular definitions, you could write a hook which would call `org-footnote-normalize', in order to transform your inline definitions in regular definitions, and then replace "\par" with an empty line. That hook function can be added in `org-export-before-parsing-hook'. Regards, -- Nicolas Goaziou