From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell Adams Subject: Babel: Shell source block outputting latex for export Date: Tue, 1 May 2018 18:29:59 +0200 Message-ID: <20180501162959.GF1695@volibear> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDYAJ-0007u3-VZ for emacs-orgmode@gnu.org; Tue, 01 May 2018 12:30:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDYAJ-0001uY-0a for emacs-orgmode@gnu.org; Tue, 01 May 2018 12:30:07 -0400 Received: from se02-out.mail.pcextreme.nl ([2a00:f10:121:a00:4f8:84ff:fe00:a846]:56753) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fDYAI-0001r9-RM for emacs-orgmode@gnu.org; Tue, 01 May 2018 12:30:06 -0400 Content-Disposition: inline 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 Seems like this recently broke. Here's an example: #+begin_src sh :results latex :exports results echo '\begin{lstlisting}' echo 'latex test should not be table' echo '\end{lstlisting}' #+end_src #+RESULTS: #+BEGIN_EXPORT latex | \begin{lstlisting} | | | | | | | latex | test | should | not | be | table | | \end{lstlisting} | | | | | | #+END_EXPORT The expected result is: #+RESULTS: #+BEGIN_LATEX \begin{lstlisting} latex test should not be table \end{lstlisting} #+END_LATEX I use shell commands to output listings of source files with custom formatting, and highlight source code segments instead of entire files for review. Any suggestions how I can prevent the automatic tabling of output? This worked in Org 8, and I'm on the latest release on ELPA (9.1.2). Thanks. ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3