emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [Bug] New LaTeX exporter ignoring noexport
@ 2012-05-06 20:03 Andreas Leha
  2012-05-06 20:25 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Leha @ 2012-05-06 20:03 UTC (permalink / raw)
  To: emacs-orgmode

* Hi all,

for me the new latex exporter seems to ignore the :noexport: tag with
regard to source block execution.

If I export this example, both source blocks get evaluated.

(It works well, if I limit the scope of the export to a subtree)


** Do NOT export this						   :noexport:
Test
#+begin_src R
  Sys.sleep(10)
#+end_src


** Export this
No test
#+begin_src R
  1:5
#+end_src


Regards,
Andreas

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bug] New LaTeX exporter ignoring noexport
  2012-05-06 20:03 [Bug] New LaTeX exporter ignoring noexport Andreas Leha
@ 2012-05-06 20:25 ` Nicolas Goaziou
  2012-05-06 20:39   ` Andreas Leha
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2012-05-06 20:25 UTC (permalink / raw)
  To: Andreas Leha; +Cc: emacs-orgmode

Hello,

Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:

> for me the new latex exporter seems to ignore the :noexport: tag with
> regard to source block execution.
>
> If I export this example, both source blocks get evaluated.

:noexport: isn't a directive that Babel recognizes.  As a consequence,
a :noexport: tag won't prevent a source block from being executed.
There are other ways to specify it at the Babel level, though.

On the other hand, a :noexport: tag prevents a subtree from being
published, which is what happens here, as far as I can tell.

Therefore, I don't qualify this as a bug.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bug] New LaTeX exporter ignoring noexport
  2012-05-06 20:25 ` Nicolas Goaziou
@ 2012-05-06 20:39   ` Andreas Leha
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Leha @ 2012-05-06 20:39 UTC (permalink / raw)
  To: emacs-orgmode

Hi Nicolas,


Nicolas Goaziou <n.goaziou@gmail.com> writes:

> Hello,
>
> Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
>
>> for me the new latex exporter seems to ignore the :noexport: tag with
>> regard to source block execution.
>>
>> If I export this example, both source blocks get evaluated.
>
> :noexport: isn't a directive that Babel recognizes.  As a consequence,
> a :noexport: tag won't prevent a source block from being executed.
> There are other ways to specify it at the Babel level, though.
>
> On the other hand, a :noexport: tag prevents a subtree from being
> published, which is what happens here, as far as I can tell.
>
> Therefore, I don't qualify this as a bug.

Fair enough.  I was just surprised, that the new exporter behaves
differently from the old one in this respect.

(
 And I still think, that
 1) the differentiation between babel and export wrt :noexport: is not
    intuitive and
 2) turning off evaluation for a subtree on "Babel level", is not as
    straight forward and visual as the simple :noexport: tag.

 So all in all I'll miss this feature in the new exporter.
)

Regards,
Andreas

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-06 20:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-06 20:03 [Bug] New LaTeX exporter ignoring noexport Andreas Leha
2012-05-06 20:25 ` Nicolas Goaziou
2012-05-06 20:39   ` Andreas Leha

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).