From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: workflow, matlab+latex in org file Date: Mon, 11 Jul 2016 12:32:47 +0000 Message-ID: <8760sc8ids.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMaOT-00071A-6l for emacs-orgmode@gnu.org; Mon, 11 Jul 2016 08:33:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMaOP-0006fk-2d for emacs-orgmode@gnu.org; Mon, 11 Jul 2016 08:33:00 -0400 Received: from plane.gmane.org ([80.91.229.3]:38434) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMaOO-0006fW-Rd for emacs-orgmode@gnu.org; Mon, 11 Jul 2016 08:32:56 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bMaON-0006J7-7u for emacs-orgmode@gnu.org; Mon, 11 Jul 2016 14:32:55 +0200 Received: from gilgamesch.quim.ucm.es ([147.96.12.99]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Jul 2016 14:32:55 +0200 Received: from oub by gilgamesch.quim.ucm.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Jul 2016 14:32:55 +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 Hello I want in a org file, to include matlab code and run it (that I know how to do) Then I want certain results, which are symbolic variables, expressed in latex, we I achieve using matlab's latex command. Like #+begin_src matlab :results output clear all syms e p R g w K K2 phi=[(e + (e+p)*R^2)^((g-1)/2);((e+p)*R*sqrt(1+R^2))/(e+(e+p)*R^2)] jac=jacobian(phi,[e,p]) ltxjac=latex(jac) #+end_src This result should of course also be included in the orgfile. But then I want to export the org file to latex, such that only the results, which have been converted to latex are exported and all the matlab command should be ignored, that is in that case: ltxjac but nicely surrounded by say $. Anybody has an idea how to do this efficiently? thanks regards Uwe Brauer