From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: conditional export based on babel result Date: Wed, 05 Sep 2012 14:36:08 +0200 Message-ID: <87k3w8bq9z.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9EqK-0000Fh-Rr for emacs-orgmode@gnu.org; Wed, 05 Sep 2012 08:36:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9EqF-0008Sp-59 for emacs-orgmode@gnu.org; Wed, 05 Sep 2012 08:36:28 -0400 Received: from plane.gmane.org ([80.91.229.3]:35442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9EqE-0008SX-VC for emacs-orgmode@gnu.org; Wed, 05 Sep 2012 08:36:23 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T9EqD-0005ys-Sy for emacs-orgmode@gnu.org; Wed, 05 Sep 2012 14:36:21 +0200 Received: from genepi110.genepi.med.uni-goettingen.de ([134.76.140.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 05 Sep 2012 14:36:21 +0200 Received: from andreas.leha by genepi110.genepi.med.uni-goettingen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 05 Sep 2012 14:36:21 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi all, is there a possibility to exclude (or include) parts of the document based on some babel source block result? First some use case: Say, I am doing a statistical test. And only if the test turns out to be significant, a follow-up analysis is carried out. Is that possible? One thinkable and ugly option would be to allow lisp-generated tags like in this dummy example: #+begin_org * The Test #+name: sometest #+begin_src R test_result <- 0.03 #+end_src ** export maybe (if (< (string-to-number (sbe sometest)) 0.05) ":export:" ":noexport:") The follow-up #+end_org Regards, Andreas