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: Org-mode Discussion <emacs-orgmode@gnu.org>
Subject: Re: Export to LaTeX and Beamer
Date: Mon, 15 Jul 2013 11:40:34 +0200	[thread overview]
Message-ID: <20130715094034.GA27914@kuru.dyndns-at-home.com> (raw)
In-Reply-To: <87txjwi3q3.fsf@free.fr>

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 <fatkasuvayu+linux@gmail.com> writes:
> > There is none, but you can use filters to achieve this.  Take a look
> > here:
> > <https://github.com/suvayu/.emacs.d/blob/master/org-mode-config.el#L258>
> > 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.



Open source is the future. It sets us free.

  reply	other threads:[~2013-07-15  9:40 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 [this message]
2013-07-15  9:49       ` Suvayu Ali
     [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:

  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=20130715094034.GA27914@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).