emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: ignoreheading in LaTeX export
Date: Sat, 29 Mar 2014 10:48:59 +0100	[thread overview]
Message-ID: <m2k3bdwd10.fsf@polytechnique.org> (raw)
In-Reply-To: <87lhvvjoo0.fsf@gmx.us> (rasmus@gmx.us's message of "Thu, 27 Mar 2014 22:51:27 +0100")

Hi Rasmus,

Rasmus <rasmus@gmx.us> writes:

> This is why you would want to use a filter rather than a hook
> (i.e. you only want to retain the Org structure when exporting).
> Here's a slightly modified version of the filter I use.

Thank you for this suggestion.

I went back to my original problem (how to neatly fold away some setup
code at the beginning of the file) and I'm now using a solution that
seems to work well.

- The setup heading has a 'ignoreheading' tag (there is no longer
  a 'noexport' tag).
- Code blocks inside have a ':exports none' header.
- The next block where I want to add some heading-less text also has
  a 'ignoreheading' tag.
- I'm using the "before-parsing" hook to get rid of these headings.

Thanks again,

Alan

  reply	other threads:[~2014-03-29 11:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-27  8:23 ignoreheading in LaTeX export Alan Schmitt
2014-03-27  8:49 ` Nicolas Goaziou
2014-03-27 10:23   ` Sebastien Vauban
2014-03-27 10:48     ` Nicolas Goaziou
2014-03-27 13:08   ` Alan Schmitt
2014-03-27 13:28     ` Nicolas Goaziou
2014-03-27 14:24       ` Alan Schmitt
2014-03-27 21:51         ` Rasmus
2014-03-29  9:48           ` Alan Schmitt [this message]
2014-03-29 14:17 ` Marcin Borkowski

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=m2k3bdwd10.fsf@polytechnique.org \
    --to=alan.schmitt@polytechnique.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus@gmx.us \
    /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).