From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Marcin Antczak <marcin.antczak@neutrico-themes.pl>
Cc: emacs-orgmode@gnu.org
Subject: Re: How to export drawer?
Date: Fri, 04 Apr 2014 21:10:41 +0200 [thread overview]
Message-ID: <87zjk07vwu.fsf@gmail.com> (raw)
In-Reply-To: <87mwg1xx8w.fsf@neutrico-themes.pl> (Marcin Antczak's message of "Fri, 04 Apr 2014 11:25:03 +0200")
Hello,
Marcin Antczak <marcin.antczak@neutrico-themes.pl> writes:
> I would like to export some org to html with custom backend based on
> 'html.
>
> What I need is to override function org-html-headline from ox-html.el
OK. But this isn't related to drawers, is it? If you want to alter
drawers export, you need to override `org-html-drawer' too.
> I just want to export drawer with some specific name. For example
> LOGBOOK or CLOCKTABLE.
You can set `org-export-with-drawers'. You can also hard-code the list
into `org-mybackend-drawer':
(defun org-mybackend-drawer (drawer contents info)
(when (member-ignore-case (org-element-property :drawer-name drawer)
'("LOGBOOK" "CLOCKTABLE"))
(org-export-data-with-backend drawer 'html info)))
Of course, you need to install this function in your custom back-end:
(org-export-define-derived-backend 'mybackend 'html
...
:translate-alist '(...
(drawer . org-mybackend-drawer)
...)
...)
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2014-04-04 19:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-04 9:25 How to export drawer? Marcin Antczak
2014-04-04 19:10 ` Nicolas Goaziou [this message]
2014-04-04 21:06 ` Marcin Antczak
2014-04-04 21:49 ` Nicolas Goaziou
2014-04-04 22:06 ` Marcin Antczak
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zjk07vwu.fsf@gmail.com \
--to=n.goaziou@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=marcin.antczak@neutrico-themes.pl \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.