emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: Julien Cubizolles <j.cubizolles@free.fr>
Cc: Emacs Org mode <emacs-orgmode@gnu.org>
Subject: Re: Export to LaTeX and Beamer
Date: Wed, 17 Jul 2013 23:00:17 +0200	[thread overview]
Message-ID: <20130717210017.GC11360@kuru.dyndns-at-home.com> (raw)
In-Reply-To: <87k3koc3sf.fsf@free.fr>

On Wed, Jul 17, 2013 at 10:47:12PM +0200, Julien Cubizolles wrote:
> Hi Ali (am I right in assuming that's your first name ?)
> Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:
> > 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.
> I'll try and adapt to make it work. I'll let you know how it goes.

Actually Rasmus shared his filter earlier today on the Emacs list.  Try

(defun my-ignore-headline (contents backend info)
  "Ignore headlines with tag `ignoreheading'."
  (when (and (org-export-derived-backend-p backend 'latex 'html 'ascii)
		  (string-match "\\`.*ignoreheading.*\n"
				(downcase headline)))
    (replace-match "" nil nil headline)))

(add-to-list 'org-export-filter-headline-functions 'my-ignore-headline)



Open source is the future. It sets us free.

      parent reply	other threads:[~2013-07-17 21:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-11 21:41 Export to LaTeX and Beamer Julien Cubizolles
2013-07-13 20:25 ` Suvayu Ali
2013-07-15  8:21   ` Julien Cubizolles
2013-07-15  8:55     ` Suvayu Ali
2013-07-15  9:15   ` Julien Cubizolles
2013-07-15  9:40     ` Suvayu Ali
2013-07-15  9:49       ` Suvayu Ali
     [not found]         ` <87k3koc3sf.fsf@free.fr>
2013-07-17 21:00           ` Suvayu Ali [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130717210017.GC11360@kuru.dyndns-at-home.com \
    --to=fatkasuvayu+linux@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=j.cubizolles@free.fr \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).