From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: strange output when executing matlab using babel, strange , Date: Fri, 31 May 2019 15:08:31 +0200 Message-ID: <875zpqydo0.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:55793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWhJV-0003E6-Cv for emacs-orgmode@gnu.org; Fri, 31 May 2019 09:11:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hWhH5-0006ES-Ie for emacs-orgmode@gnu.org; Fri, 31 May 2019 09:08:48 -0400 Received: from [195.159.176.226] (port=42380 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hWhH5-0006D2-BA for emacs-orgmode@gnu.org; Fri, 31 May 2019 09:08:47 -0400 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hWhH0-000n9i-HS for emacs-orgmode@gnu.org; Fri, 31 May 2019 15:08:42 +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 am running Ubuntu 16.06, matlab 2018b and I am using the python kernel to use matlab from within org mode Thanks to John Kitchin, I have the following setting * Lisp setting #+BEGIN_SRC emacs-lisp (setq org-confirm-babel-evaluate nil) ;don't prompt me to confirm everytime I want to evaluate a block ;;; display/update images in the buffer after I evaluate (add-hook 'org-babel-after-execute-hook 'org-display-inline-images 'append) (add-to-list 'org-src-lang-modes '("matlab" . matlab)) (setq python-shell-interpreter "python3") ;; set default headers for convenience (setq org-babel-default-header-args:matlab '((:results . "output replace") (:session . "matlab") (:kernel . "matlab") (:exports . "code") (:cache . "no") (:noweb . "no") (:hlines . "no") (:tangle . "no"))) (defalias 'org-babel-execute:matlab 'org-babel-execute:ipython) (defalias 'org-babel-prep-session:matlab 'org-babel-prep-session:ipython) (defalias 'org-babel-matlab-initiate-session 'org-babel-ipython-initiate-session) #+END_SRC * The problem When I run #+begin_src matlab :results output latex :exports results :eval never-export disp('*Step 3:*') disp('*Step 3:* Calculate this') #+end_src On obtain #+RESULTS: #+begin_export latex ,*Step 3:* ,*Step 3:* Calculate this #+end_export Instead of #+begin_export latex *Step 3:* *Step 3:* Calculate this #+end_export Does anybody have an idea what is wrong there? Uwe Brauer