From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [new exporter] ignoring a headline on export to PDF via latex Date: Tue, 05 Mar 2013 23:21:07 +0100 Message-ID: <87vc95sd2k.fsf@gmail.com> References: <87zjyh7vql.fsf@pinto.chemeng.ucl.ac.uk> <20130305153803.GL7544@kuru.dyndns-at-home.com> <87d2vd3hy5.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UD0Eb-0001da-QW for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 17:21:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UD0Ea-0000tK-Fd for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 17:21:21 -0500 Received: from mail-we0-x235.google.com ([2a00:1450:400c:c03::235]:52256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UD0Ea-0000tE-8p for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 17:21:20 -0500 Received: by mail-we0-f181.google.com with SMTP id t44so6970604wey.26 for ; Tue, 05 Mar 2013 14:21:19 -0800 (PST) In-Reply-To: <87d2vd3hy5.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Tue, 5 Mar 2013 16:54:58 +0000") 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: Suvayu Ali Cc: emacs-orgmode@gnu.org Hello, Eric S Fraga writes: > Suvayu Ali writes: > > [...] > >> 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. > > Thanks Suvayu. It is this update that I need help with! The > documentation of that variable is close to impenetrable to me A TYPE filter is called each time transcoding process is over of an element of type TYPE. Here, each time a headline is transcoded (along with its contents), functions in `org-export-filter-headline-functions' are called with the resulting string as the first argument (i.e. the LaTeX code for the headline and all its contents). There's a filter for each type of element/object, and a couple of special filters. > (e.g. what is a /communication channel/?). The communication channel is basically a plist containing data available for all transcoding functions. 99% of its properties have constant values during export process (like export options, or pre-computed values from the parse tree). Nevertheless, it can be used to store some data at some point in time and retrieve it from another transcoding function later, effectively allowing communication between parts of the export system. Regards, -- Nicolas Goaziou