[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] how to use :options-alist in org-export-define-derived-backend ?
From: |
Nicolas Richard |
Subject: |
[O] how to use :options-alist in org-export-define-derived-backend ? |
Date: |
Mon, 02 Jun 2014 22:55:23 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.91 (gnu/linux) |
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.
- [O] how to use :options-alist in org-export-define-derived-backend ?,
Nicolas Richard <=
- Re: [O] how to use :options-alist in org-export-define-derived-backend ?, Bastien, 2014/06/03
- Re: [O] how to use :options-alist in org-export-define-derived-backend ?, Nicolas Goaziou, 2014/06/03
- Re: [O] how to use :options-alist in org-export-define-derived-backend ?, Bastien, 2014/06/13
- Re: [O] how to use :options-alist in org-export-define-derived-backend ?, Nicolas Goaziou, 2014/06/14
- Re: [O] how to use :options-alist in org-export-define-derived-backend ?, Nicolas Goaziou, 2014/06/15
- Re: [O] how to use :options-alist in org-export-define-derived-backend ?, Bastien, 2014/06/15
- Re: [O] how to use :options-alist in org-export-define-derived-backend ?, Nicolas Goaziou, 2014/06/16
Re: [O] how to use :options-alist in org-export-define-derived-backend ?, Nicolas Goaziou, 2014/06/03