From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
To: emacs-orgmode@gnu.org
Subject: how to use :options-alist in org-export-define-derived-backend ?
Date: Mon, 02 Jun 2014 22:55:23 +0200 [thread overview]
Message-ID: <87bnubhw04.fsf@geodiff-mac3.ulb.ac.be> (raw)
Hello,
I'm trying to play with the exporter but I'd like my back-end to have no
toc by default. I tried
(org-export-define-derived-backend 'mytest 'html
:translate-alist
;; don't use the template, concentrate on the toc.
(list (cons 'template (lambda (a _) a)))
:options-alist
'((:with-toc nil "toc" nil)))
IIUC, the last "nil" up there should be the default value for :with-toc.
Unfortunately, exporting like this:
(with-temp-buffer
(insert "* foo\n** bar\nsome content")
(org-export-to-buffer 'mytest "*test*")
(pop-to-buffer "*test*"))
will show a table of contents. Setting org-export-with-toc to nil works
as expected though :
(let ((org-export-with-toc))
(with-temp-buffer
(insert "* foo\n** bar\nsome content")
(org-export-to-buffer 'mytest "*test*")
(pop-to-buffer "*test*")))
What am I doing wrong ?
Thanks
--
Nico.
next reply other threads:[~2014-06-02 20:54 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-02 20:55 Nicolas Richard [this message]
2014-06-03 16:28 ` how to use :options-alist in org-export-define-derived-backend ? Bastien
2014-06-03 20:16 ` Nicolas Goaziou
2014-06-13 10:52 ` Bastien
2014-06-14 7:11 ` Nicolas Goaziou
2014-06-15 20:47 ` Nicolas Goaziou
2014-06-15 20:54 ` Bastien
2014-06-16 6:05 ` Nicolas Goaziou
2014-07-28 8:53 ` Bastien
2014-07-28 19:30 ` Nicolas Goaziou
2014-07-29 13:07 ` Bastien
2014-07-29 14:08 ` Rasmus
2014-07-29 14:16 ` Nicolas Richard
2014-07-29 14:17 ` Nicolas Goaziou
2014-07-29 14:25 ` Bastien
2014-08-02 19:21 ` Nicolas Goaziou
2014-06-03 16:37 ` Nicolas Goaziou
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=87bnubhw04.fsf@geodiff-mac3.ulb.ac.be \
--to=theonewiththeevillook@yahoo.fr \
--cc=emacs-orgmode@gnu.org \
/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).