[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] new exporter fails to output footnotes?
From: |
Nicolas Goaziou |
Subject: |
Re: [O] new exporter fails to output footnotes? |
Date: |
Sun, 10 Feb 2013 20:46:46 +0100 |
Hello,
Samuel Wales <address@hidden> writes:
> Surely this is pilot error someplace.
>
> (org-export-to-buffer
> 'html
> (get-buffer-create "test")
> t
> nil
> t)
>
Beware, `org-export-to-buffer' expects a string as its second argument,
not a buffer. So:
(org-export-to-buffer 'html "test" t nil t)
should be enough.
> *** test
> asasdf[fn::test]
>
> *** output
> <p>
> asasdf<sup><a id="fnr.1" name="fnr.1" class="footref"
> href="#fn.1">1</a></sup></p>
>
I assume you wonder why there's no footnote definition. That's because
this is a body-only export. Footnote definitions belong to the global
template, which is ignored when this option is active.
Regards,
--
Nicolas Goaziou