From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: How to export drawer? Date: Fri, 04 Apr 2014 21:10:41 +0200 Message-ID: <87zjk07vwu.fsf@gmail.com> References: <87mwg1xx8w.fsf@neutrico-themes.pl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WW9VL-0005Ux-79 for emacs-orgmode@gnu.org; Fri, 04 Apr 2014 15:10:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WW9VF-0001uH-Ea for emacs-orgmode@gnu.org; Fri, 04 Apr 2014 15:10:19 -0400 Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]:37874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WW9VF-0001tR-6s for emacs-orgmode@gnu.org; Fri, 04 Apr 2014 15:10:13 -0400 Received: by mail-wi0-f173.google.com with SMTP id z2so1894626wiv.0 for ; Fri, 04 Apr 2014 12:10:12 -0700 (PDT) In-Reply-To: <87mwg1xx8w.fsf@neutrico-themes.pl> (Marcin Antczak's message of "Fri, 04 Apr 2014 11:25:03 +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: Marcin Antczak Cc: emacs-orgmode@gnu.org Hello, Marcin Antczak 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