From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: [NOT SOLVED: BUG?] (was: [SOLVED]) Date: Thu, 03 Aug 2017 08:04:02 +0000 Message-ID: <8737996psd.fsf_-_@mat.ucm.es> References: <87poce6ukv.fsf@mat.ucm.es> <877eyl6qrt.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddB7G-0007pE-FV for emacs-orgmode@gnu.org; Thu, 03 Aug 2017 04:04:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddB7C-0007VG-Hk for emacs-orgmode@gnu.org; Thu, 03 Aug 2017 04:04:22 -0400 Received: from [195.159.176.226] (port=41379 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ddB7C-0007Ut-AD for emacs-orgmode@gnu.org; Thu, 03 Aug 2017 04:04:18 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ddB6z-0005ad-Uv for emacs-orgmode@gnu.org; Thu, 03 Aug 2017 10:04:05 +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 I just checked and situation is absurd. Here is the minimal example: ,---- | | #+begin_src matlab :results output latex :exports results | X=[1]; | disp('\begin{displaymath}') | fprintf('X&=%g\\\\ \n', X) | disp('\end{displaymath}') | #+end_src | | #+RESULTS: | #+BEGIN_EXPORT latex | \begin{displaymath} | X&=1\\ | \end{displaymath} | #+END_EXPORT `---- When I set org-export-babel-evaluate nil, then the code is *not* evaluated, *but* the code block *and* the result are exported. ,---- | | \begin{document} | | \lstset{style=Matlab-editor,basicstyle=\mlttfamily,escapechar=",mlshowsectionrules=true,mathescape=true,morecomment=[s]{\%\{}{\%\}},language=Matlab,label= ,caption= ,captionpos=b,numbers=none} | \begin{lstlisting} | X=[1]; | disp('\begin{displaymath}') | fprintf('X&=%g\\\\ \n', X) | disp('\end{displaymath}') | \end{lstlisting} | | \begin{displaymath} | X&=1\\ | \end{displaymath} | \end{document} `---- When I set org-export-babel-evaluate to t, export but say no to the question whether or not to evaluate, *only* the result is exported, which is what I want. ,---- | | \begin{document} | | \begin{displaymath} | X&=1\\ | \end{displaymath} | \end{document} `---- Is this a *bug*? I wait a day, then I will file a bug report. Uwe Brauer