emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Running babel blocks in :noexport: sections
Date: Sun, 28 Oct 2012 12:23:19 -0500	[thread overview]
Message-ID: <CA+M2ft-tVkhVGv0_1dGNpVb2jFO1yaAzecXbvrRpDj1sx=gQ-w@mail.gmail.com> (raw)
In-Reply-To: <87mwz7r09r.fsf@gmail.com>

On Sat, Oct 27, 2012 at 5:57 PM, Eric Schulte <schulte.eric@gmail.com> wrote:
> John Hendy <jw.hendy@gmail.com> writes:
>
>> For papers and beamer presentations, I sometimes hide more "universal"
>> babel blocks inside a sort of setup headline. I thought I'd done this
>> before, but perhaps not... The idea would be like so:
>>
>> * Data setup     :noexport:
>>
>> #+begin_src R :session r
>>
>> load libraries
>> read data files
>> do universal operations
>>
>> #+end_src
>>
>> * Slide
>>
>> #+begin_src R :session r :exports results :results output graphics
>>
>> subset(larger_data_set_from_above)
>> processing
>> plot something
>>
>> #+end_src
>>
>> I noticed today that my :noexport: setup sections (I had a couple)
>> were not updating. I re-defined a variable name further down in my
>> file and it was re-using the definition from an above setup section
>> (tagged with :noexport:). Just because I don't want it export doesn't
>> mean I don't want to have useful stuff in the headline...
>>
>> Is this a bug/inappropriate setting, desirable based on how others use
>> :noexport: headlines, or would others see value in executing babel
>> blocks in :noexport: headlines?
>>
>> If I /didn't/ want it executed, I'd use :execute no.
>>
>>
>> Thanks for any input,
>> John
>>
>
> Instead of tagging the headline as :noexport: you can add the COMMENT
> flag to it.  This should result in your desired behavior.  See the
> attached example.
>
>

Brilliant. That'll do just fine. Never knew about that!

John

>
> --
> Eric Schulte
> http://cs.unm.edu/~eschulte
>

  reply	other threads:[~2012-10-28 17:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-27 19:03 Running babel blocks in :noexport: sections John Hendy
2012-10-27 20:14 ` Nicolas Goaziou
2012-10-27 22:57 ` Eric Schulte
2012-10-28 17:23   ` John Hendy [this message]
2012-10-28 20:22     ` John Hendy
2012-10-28 21:14       ` Eric Schulte

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='CA+M2ft-tVkhVGv0_1dGNpVb2jFO1yaAzecXbvrRpDj1sx=gQ-w@mail.gmail.com' \
    --to=jw.hendy@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@gmail.com \
    /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).