From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: [new exporter] ignoring a headline on export to PDF via latex Date: Tue, 5 Mar 2013 16:38:03 +0100 Message-ID: <20130305153803.GL7544@kuru.dyndns-at-home.com> References: <87zjyh7vql.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCtwR-0006jP-8m for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 10:38:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCtwP-0001Gl-Tf for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 10:38:11 -0500 Received: from mail-we0-x22b.google.com ([2a00:1450:400c:c03::22b]:54176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCtwP-0001GU-MT for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 10:38:09 -0500 Received: by mail-we0-f171.google.com with SMTP id u54so6218987wey.2 for ; Tue, 05 Mar 2013 07:38:08 -0800 (PST) Content-Disposition: inline In-Reply-To: <87zjyh7vql.fsf@pinto.chemeng.ucl.ac.uk> 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: emacs-orgmode@gnu.org On Tue, Mar 05, 2013 at 02:43:30PM +0000, Eric S Fraga wrote: > Hello, > > I used to use the following to ignore a headline when exporting to PDF: > > #+begin_src emacs-lisp > (defun my-e-latex-headline (headline contents info) > (if (member "ignoreheading" (org-element-property :tags headline)) contents > (org-latex-headline headline contents info))) > (add-to-list 'org-latex-translate-alist '(headline . my-e-latex-headline)) > #+end_src > > With the new exporter, this no longer works. > Try using your function with a filter. This filter might work: org-export-filter-headline-functions. Of course it goes without saying you will have to update your function. A very simple test tells me this is probably going to be backend specific. I have had this query about filters for a while now, how to write filters that are backend agnostic. I think I'll start a new thread once I have formulated my question more clearly. Hope this helps, -- Suvayu Open source is the future. It sets us free.