From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Nicolas Richard <theonewiththeevillook@yahoo.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: how to use :options-alist in org-export-define-derived-backend ?
Date: Tue, 03 Jun 2014 18:37:12 +0200 [thread overview]
Message-ID: <87r436osp3.fsf@gmail.com> (raw)
In-Reply-To: <87bnubhw04.fsf@geodiff-mac3.ulb.ac.be> (Nicolas Richard's message of "Mon, 02 Jun 2014 22:55:23 +0200")
Hello,
Nicolas Richard <theonewiththeevillook@yahoo.fr> 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
prev parent reply other threads:[~2014-06-03 16:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-02 20:55 how to use :options-alist in org-export-define-derived-backend ? Nicolas Richard
2014-06-03 16:28 ` 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 [this message]
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=87r436osp3.fsf@gmail.com \
--to=n.goaziou@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=theonewiththeevillook@yahoo.fr \
/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).