emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] how to use :options-alist in org-export-define-derived-backend ?


From: Nicolas Goaziou
Subject: Re: [O] how to use :options-alist in org-export-define-derived-backend ?
Date: Tue, 03 Jun 2014 18:37:12 +0200

Hello,

Nicolas Richard <address@hidden> writes:

> 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.

FWIW, I cannot reproduce it.


Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]