From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Export to LaTeX and Beamer Date: Mon, 15 Jul 2013 11:40:34 +0200 Message-ID: <20130715094034.GA27914@kuru.dyndns-at-home.com> References: <87ppuowz8m.fsf@free.fr> <20130713202518.GE11006@kuru.dyndns-at-home.com> <87txjwi3q3.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyfGr-0006Vf-2e for emacs-orgmode@gnu.org; Mon, 15 Jul 2013 05:40:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UyfGp-0001o1-WA for emacs-orgmode@gnu.org; Mon, 15 Jul 2013 05:40:41 -0400 Received: from mail-ea0-x234.google.com ([2a00:1450:4013:c01::234]:65048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyfGp-0001nr-G9 for emacs-orgmode@gnu.org; Mon, 15 Jul 2013 05:40:39 -0400 Received: by mail-ea0-f180.google.com with SMTP id k10so7665106eaj.25 for ; Mon, 15 Jul 2013 02:40:38 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87txjwi3q3.fsf@free.fr> 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: Julien Cubizolles Cc: Org-mode Discussion On Mon, Jul 15, 2013 at 11:15:16AM +0200, Julien Cubizolles wrote: > The following message is a courtesy copy of an article > that has been posted to gmane.emacs.orgmode as well. > > Suvayu Ali writes: > > > > There is none, but you can use filters to achieve this. Take a look > > here: > > > > Do note, as the comment says, I have not tested it extensively. > > I tried it (evaled the following) > > (defun jc-ignore-headline (contents backend info) > "Ignore headlines with tag `ignoreheading'." > (if (eq backend 'latex) (message contents) > contents)) > > (add-to-list 'org-export-filter-headline-functions 'jc-ignore-headline) > > and then added the ignoreheading tag (there was already another tag) > to a headline but the headline is still exported. Is there another > variable to configure to ensure that the filter function is indeed run ? Now that I look at the code carefully, I realise the function is dummy. I never got the time to implement it, hence the FIXME! I just wrote the filter so that I do not forget how. What you need to do is instead of returning contents, look for the tag, if present return the contents without the headline, the unaltered contents otherwise. Should be simple to do. If I can find the time, I'll take a crack at it today. Cheers, -- Suvayu Open source is the future. It sets us free.