From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: Re: workflow, matlab+latex in org file Date: Sat, 11 Mar 2017 08:04:44 +0000 Message-ID: <87tw70dysj.fsf@mat.ucm.es> References: <8760sc8ids.fsf@mat.ucm.es> <87shvg6z9i.fsf@mat.ucm.es> <5e1e71e3698e415ca51a0b9e3cab5dac@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> <87h931qa9f.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmc1O-0002Tr-CK for emacs-orgmode@gnu.org; Sat, 11 Mar 2017 03:05:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmc1J-0006xr-EV for emacs-orgmode@gnu.org; Sat, 11 Mar 2017 03:05:02 -0500 Received: from [195.159.176.226] (port=34698 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cmc1J-0006xR-82 for emacs-orgmode@gnu.org; Sat, 11 Mar 2017 03:04:57 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cmc15-0001br-SM for emacs-orgmode@gnu.org; Sat, 11 Mar 2017 09:04:43 +0100 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 > On Friday, 10 Mar 2017 at 16:08, Uwe Brauer wrote: > [...] > You may need to add ":exports results" to the src line. > Also, you should also modify the code to wrap the output in an equation > environment: > disp('\begin{equation}') > disp(ltxjac) > disp('\end{equation}') I played a bit more around, and John's code is a great help but the matlab output for non symbolic variables is just awful As in #+begin_src matlab :results output clear all; x=[ 1 2 2 3 4] #+end_src #+RESULTS: : : x = : : 1 2 2 3 4 : Does anybody know how to get a better formatted output, to get rid of the empty lines and newline? best would be a org-table? org-table-convert-region results in | : 1 2 2 3 4 | Uwe Brauer