emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Export to LaTeX and Beamer


From: Suvayu Ali
Subject: Re: [O] Export to LaTeX and Beamer
Date: Mon, 15 Jul 2013 11:49:42 +0200
User-agent: Mutt/1.5.21 (2012-12-30)

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]