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

2012-01-12 Thread Michael Bach
Andreas Leha andreas.l...@med.uni-goettingen.de 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

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

2012-01-12 Thread Michael Bach
Sebastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org 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

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

2012-01-11 Thread Andreas Leha
Michael Bach pha...@gmail.com writes: Andreas Leha andreas.l...@med.uni-goettingen.de 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} inner_test()

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

2012-01-10 Thread Michael Bach
Eric Schulte eric.schu...@gmx.com 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

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

2012-01-10 Thread Andreas Leha
Michael Bach pha...@gmail.com writes: Eric Schulte eric.schu...@gmx.com 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

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

2012-01-10 Thread Michael Bach
Andreas Leha andreas.l...@med.uni-goettingen.de 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} inner_test() \end{equation} #+end_src Yes, that works. Thanks

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

2012-01-10 Thread Sebastien Vauban
Hi Michael, Michael Bach wrote: Andreas Leha andreas.l...@med.uni-goettingen.de 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} inner_test() \end{equation}

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

2012-01-02 Thread Eric Schulte
Michael Bach pha...@gmail.com 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

[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