Re: [O] conditional export based on babel result

2012-09-06 Thread cberry
Andreas Leha writes: I am a bit late to the thread, but two possibilities come to mind: 1) write a brew template as #+name: brewtemp #+begin_src latex ... #end_src block then call it as #+begin_src R :noweb yes :results output latex brew(text= <> ) #+end_src Brew allows loops

Re: [O] conditional export based on babel result

2012-09-05 Thread Andreas Leha
t...@tsdye.com (Thomas S. Dye) writes: > Hi Andreas, > > Perhaps you could generate the conditional parts of the document from > source code blocks? Pass in your test result and either export "" or > #+begin_latex ... #+end_latex? > Hi Tom, thanks for the suggestion. I have indeed done that al

Re: [O] conditional export based on babel result

2012-09-05 Thread Andreas Leha
Eric Schulte writes: > Andreas Leha writes: > >> 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,

Re: [O] conditional export based on babel result

2012-09-05 Thread Eric Schulte
Andreas Leha writes: > 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 ou

Re: [O] conditional export based on babel result

2012-09-05 Thread Thomas S. Dye
Hi Andreas, Perhaps you could generate the conditional parts of the document from source code blocks? Pass in your test result and either export "" or #+begin_latex ... #+end_latex? All the best, Tom Andreas Leha writes: > Hi all, > > is there a possibility to exclude (or include) parts of th

[O] conditional export based on babel result

2012-09-05 Thread Andreas Leha
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