From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: Julien Cubizolles <j.cubizolles@free.fr>
Cc: Org-mode Discussion <emacs-orgmode@gnu.org>
Subject: Re: Export to LaTeX and Beamer
Date: Mon, 15 Jul 2013 11:49:42 +0200 [thread overview]
Message-ID: <20130715094942.GB27914@kuru.dyndns-at-home.com> (raw)
In-Reply-To: <20130715094034.GA27914@kuru.dyndns-at-home.com>
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.
next prev parent reply other threads:[~2013-07-15 9:49 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 [this message]
[not found] ` <87k3koc3sf.fsf@free.fr>
2013-07-17 21:00 ` Suvayu Ali
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
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=20130715094942.GB27914@kuru.dyndns-at-home.com \
--to=fatkasuvayu+linux@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=j.cubizolles@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).