From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: orgtbl-mode --> orgsrc-mode, orgtbl-insert-table-or-matrix--> orgsrc-execute-block Date: Sat, 05 Aug 2017 08:16:25 +0000 Message-ID: <871soqe8fa.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57495) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dduGL-00076W-Ur for emacs-orgmode@gnu.org; Sat, 05 Aug 2017 04:16:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dduGH-0003fo-Si for emacs-orgmode@gnu.org; Sat, 05 Aug 2017 04:16:45 -0400 Received: from [195.159.176.226] (port=56897 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dduGH-0003fF-Mw for emacs-orgmode@gnu.org; Sat, 05 Aug 2017 04:16:41 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dduG4-0000Xn-Vc for emacs-orgmode@gnu.org; Sat, 05 Aug 2017 10:16:28 +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" To: emacs-orgmode@gnu.org 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