Hi I like orgtbl-mode and orgtbl-insert-table-or-matrix in latex files a lot, since they simplify considerably the construction of tables and matrixes.
I am looking for a similar functionality for src-code-blocks. The idea is to insert, surrounded by a comment environment, src-code-blocks, to execute them via org-babel and to insert the results into the latex file, very similar to what orgtbl-insert-table-or-matrix does. Something like this % BEGIN RECEIVE ORGSCR this % END RECEIVE ORGSRC this \begin{comment} #+ORGTBL: SEND this orgsrc-to-latex |/|<>| | |4 | #+begin_src matlab X=[1,2,3,4,5,6,7]; res=mean(X) #+end_src \end{comment} resulting in % BEGIN RECEIVE ORGSCR this res=3.5 % END RECEIVE ORGSRC this \begin{comment} #+ORGTBL: SEND this orgsrc-to-latex |/|<>| | |4 | #+begin_src matlab X=[1,2,3,4,5,6,7]; res=mean(X) #+end_src \end{comment} Does such a functionality already exist? Thanks Uwe Brauer