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:49:42 +0200 Message-ID: <20130715094942.GB27914@kuru.dyndns-at-home.com> References: <87ppuowz8m.fsf@free.fr> <20130713202518.GE11006@kuru.dyndns-at-home.com> <87txjwi3q3.fsf@free.fr> <20130715094034.GA27914@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyfPh-0001EF-2y for emacs-orgmode@gnu.org; Mon, 15 Jul 2013 05:49:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UyfPf-0005B5-RK for emacs-orgmode@gnu.org; Mon, 15 Jul 2013 05:49:49 -0400 Received: from mail-ee0-x22b.google.com ([2a00:1450:4013:c00::22b]:63910) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyfPf-0005Aw-JC for emacs-orgmode@gnu.org; Mon, 15 Jul 2013 05:49:47 -0400 Received: by mail-ee0-f43.google.com with SMTP id l10so7530853eei.30 for ; Mon, 15 Jul 2013 02:49:46 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130715094034.GA27914@kuru.dyndns-at-home.com> 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:40:34AM +0200, Suvayu Ali wrote: > On Mon, Jul 15, 2013 at 11:15:16AM +0200, Julien Cubizolles wrote: > > (defun jc-ignore-headline (contents backend info) > > "Ignore headlines with tag `ignoreheading'." > > (if (eq backend 'latex) (message contents) > > contents)) Here is an older version of the function: (defun my-org-export-remove-tagged-headlines (tag) (save-excursion (goto-char (point-min)) (while (re-search-forward (concat ":" tag ":") nil t) (delete-region (point-at-bol) (point-at-eol))))) Here I'm parsing the buffer in a pre-process hook. In a filter, you have to parse a string instead. But the logic should be the same. Hope this helps, -- Suvayu Open source is the future. It sets us free.