Re: [O] inline src_R also in latex src block

2012-01-12 Thread Michael Bach
"Sebastien Vauban" writes: > That's perfectly correct: as long as your input code block does not change > (options on the "meta" line and/or contents), your results will be taken "as > is", instead of being recomputed every time. Very nice, Thanks for confirmation! Michael

Re: [O] inline src_R also in latex src block

2012-01-12 Thread Michael Bach
Andreas Leha writes: > yes, that should work. Try to export the following several times. The > first number should not change. > (note: maybe you'd have to execute the inner_test_cached once on your > system) > > #+name: inner_test_cached > #+begin_src R :cache yes :exports none > rnorm(1) >

Re: [O] inline src_R also in latex src block

2012-01-11 Thread Andreas Leha
Michael Bach writes: > Andreas Leha writes: > >> would this noweb-based approach work for you: >> >> #+name: inner_test >> #+begin_src R >> 4 + 4 >> #+end_src >> >> #+name: test >> #+begin_src latex :noweb yes >> \begin{equation} >> <> >> \end{equation} >> #+end_src >> > > Yes, that wo

Re: [O] inline src_R also in latex src block

2012-01-10 Thread Sebastien Vauban
Hi Michael, Michael Bach wrote: > Andreas Leha writes: > >> would this noweb-based approach work for you: >> >> #+name: inner_test >> #+begin_src R >> 4 + 4 >> #+end_src >> >> #+name: test >> #+begin_src latex :noweb yes >> \begin{equation} >> <> >> \end{equation} >> #+end_src > > Yes,

Re: [O] inline src_R also in latex src block

2012-01-10 Thread Michael Bach
Andreas Leha writes: > would this noweb-based approach work for you: > > #+name: inner_test > #+begin_src R > 4 + 4 > #+end_src > > #+name: test > #+begin_src latex :noweb yes > \begin{equation} > <> > \end{equation} > #+end_src > Yes, that works. Thanks for your thoughts on this, And

Re: [O] inline src_R also in latex src block

2012-01-10 Thread Andreas Leha
Michael Bach writes: > Eric Schulte writes: > > >> I don't know of a way to evaluate inline code blocks which are already >> inside of regular code blocks. > > Thanks for your thoughts on this, Eric. This would be *really* > convenient for me. Too bad the christmas wishlist was processed > a

Re: [O] inline src_R also in latex src block

2012-01-10 Thread Michael Bach
Eric Schulte writes: > I don't know of a way to evaluate inline code blocks which are already > inside of regular code blocks. Thanks for your thoughts on this, Eric. This would be *really* convenient for me. Too bad the christmas wishlist was processed already. > You could try direct begi

Re: [O] inline src_R also in latex src block

2012-01-02 Thread Eric Schulte
Michael Bach writes: > Hello, > > I am using org-mode version 7.8.02 > > I can successfully do inline `src_R' e.g. via > > \begin{equation} > src_R{4 + 4} > \end{equation} > > where `8' is put into the equation environment on export. Sadly, there > is no LaTeX font lock in the org file this wa

[O] inline src_R also in latex src block

2011-12-30 Thread Michael Bach
Hello, I am using org-mode version 7.8.02 I can successfully do inline `src_R' e.g. via --8<---cut here---start->8--- \begin{equation} src_R{4 + 4} \end{equation} --8<---cut here---end--->8--- where `8' is put into the eq