From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: how to use :options-alist in org-export-define-derived-backend ? Date: Tue, 03 Jun 2014 18:37:12 +0200 Message-ID: <87r436osp3.fsf@gmail.com> References: <87bnubhw04.fsf@geodiff-mac3.ulb.ac.be> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrrhY-0006jQ-Uc for emacs-orgmode@gnu.org; Tue, 03 Jun 2014 12:36:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WrrhT-0006NX-Np for emacs-orgmode@gnu.org; Tue, 03 Jun 2014 12:36:40 -0400 Received: from mail-we0-x22a.google.com ([2a00:1450:400c:c03::22a]:62218) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrrhT-0006NH-Hu for emacs-orgmode@gnu.org; Tue, 03 Jun 2014 12:36:35 -0400 Received: by mail-we0-f170.google.com with SMTP id u57so7271497wes.1 for ; Tue, 03 Jun 2014 09:36:34 -0700 (PDT) In-Reply-To: <87bnubhw04.fsf@geodiff-mac3.ulb.ac.be> (Nicolas Richard's message of "Mon, 02 Jun 2014 22:55:23 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Richard Cc: emacs-orgmode@gnu.org Hello, Nicolas Richard 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