emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Samuel Wales <samologist@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: new exporter fails to output footnotes?
Date: Sun, 10 Feb 2013 20:46:46 +0100	[thread overview]
Message-ID: <87txpkdk9l.fsf@gmail.com> (raw)
In-Reply-To: <CAJcAo8vKgPLfod_7Wq7fK+15X=+SC2x_MxmhgmwBnzP-OfK0Hw@mail.gmail.com> (Samuel Wales's message of "Sun, 10 Feb 2013 11:49:51 -0700")

Hello,

Samuel Wales <samologist@gmail.com> 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

  reply	other threads:[~2013-02-10 19:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-10 18:49 new exporter fails to output footnotes? Samuel Wales
2013-02-10 19:46 ` Nicolas Goaziou [this message]
2013-02-10 19:54   ` Samuel Wales
2013-02-10 22:10     ` Nicolas Goaziou
2013-02-10 22:28       ` Samuel Wales
2013-02-11  7:06         ` Nicolas Goaziou
2013-02-11 21:28 ` Nicolas Goaziou
2013-02-12 18:49   ` Samuel Wales
2013-02-13 13:24     ` Nicolas Goaziou
2013-02-16 22:03       ` Samuel Wales
2013-02-18 20:09         ` Nicolas Goaziou
2013-02-27 23:15       ` Samuel Wales
2013-02-27 23:16         ` Samuel Wales

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87txpkdk9l.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=samologist@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).