From mboxrd@z Thu Jan  1 00:00:00 1970
From: Nicolas Goaziou <n.goaziou@gmail.com>
Subject: Re: footnotes export verbatim
Date: Mon, 25 Feb 2013 09:09:08 +0100
Message-ID: <87ppzoyfvf.fsf@gmail.com>
References: <CAJcAo8vD-HmHYUzfhjfS7-V9JX6Rfe-oy6s4V2zwd0gL5iFY-A@mail.gmail.com>
	<87bobf3ten.fsf@gmail.com>
	<CAJcAo8st7e=P+J5d+QHG7QcfdiUXnjiG1yqh+K3pXqZWMObC6Q@mail.gmail.com>
	<87txp63n7l.fsf@gmail.com>
	<CAJcAo8uW8MWdvmC-EQYAfb43ZAZiTJQ790Z9Fq2FBTARy2wpEQ@mail.gmail.com>
	<87hal63eei.fsf@gmail.com>
	<CAJcAo8tqnco5a+dQhOg0U7SHvK0CTkZS=EV-+kk-OvvcWbwDuQ@mail.gmail.com>
	<87ehg5zuqe.fsf@gmail.com>
	<CAJcAo8sm_mN=bZx5+q_1JgmEFkff+A0og78mMOzyvWHD9+Oo3g@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([208.118.235.92]:50868)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <n.goaziou@gmail.com>) 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 <n.goaziou@gmail.com>) 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 <n.goaziou@gmail.com>) 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 <emacs-orgmode@gnu.org>; Mon, 25 Feb 2013 00:09:22 -0800 (PST)
In-Reply-To: <CAJcAo8sm_mN=bZx5+q_1JgmEFkff+A0og78mMOzyvWHD9+Oo3g@mail.gmail.com>
	(Samuel Wales's message of "Sun, 24 Feb 2013 13:12:56 -0700")
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=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 <samologist@gmail.com>
Cc: emacs-orgmode@gnu.org

Samuel Wales <samologist@gmail.com> writes:

> On 2/24/13, Nicolas Goaziou <n.goaziou@gmail.com> wrote:
>> Samuel Wales <samologist@gmail.com> writes:
>>> On 2/20/13, Nicolas Goaziou <n.goaziou@gmail.com> 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