From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Berry, Charles" Subject: Re: Babel: Shell source block outputting latex for export Date: Tue, 1 May 2018 20:43:16 +0000 Message-ID: <51921E0C-F62E-4F45-B323-0607EDB8D6CA@ucsd.edu> References: <20180501162959.GF1695@volibear> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDc7W-0006d4-3c for emacs-orgmode@gnu.org; Tue, 01 May 2018 16:43:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDc7S-0004iM-0j for emacs-orgmode@gnu.org; Tue, 01 May 2018 16:43:30 -0400 Received: from iport-bcv4-out.ucsd.edu ([132.239.0.122]:4091) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1fDc7R-0004fn-EQ for emacs-orgmode@gnu.org; Tue, 01 May 2018 16:43:25 -0400 In-Reply-To: <20180501162959.GF1695@volibear> Content-Language: en-US Content-ID: 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: Russell Adams Cc: emacs-orgmode > On May 1, 2018, at 9:29 AM, Russell Adams wro= te: >=20 > Seems like this recently broke. >=20 > Here's an example: >=20 > #+begin_src sh :results latex :exports results > echo '\begin{lstlisting}' > echo 'latex test should not be table' > echo '\end{lstlisting}' > #+end_src >=20 > #+RESULTS: > #+BEGIN_EXPORT latex > | \begin{lstlisting} | | | | | | > | latex | test | should | not | be | table | > | \end{lstlisting} | | | | | | > #+END_EXPORT >=20 > The expected result is: >=20 > #+RESULTS: > #+BEGIN_LATEX > \begin{lstlisting} > latex test should not be table > \end{lstlisting} > #+END_LATEX >=20 > I use shell commands to output listings of source files with custom forma= tting, > and highlight source code segments instead of entire files for review. >=20 > Any suggestions how I can prevent the automatic tabling of output? >=20 On my system, this works (note the double backslash in the first line) #+begin_src sh :exports results :results raw :wrap export latex echo '\\begin{lstlisting}' echo 'latex test should not be table' echo '\end{lstlisting}' #+end_src Note that in Version 9.0 the syntax for export blocks changed (see ORG-NEWS= ) as the first #+RESULTS has it. HTH, Chuck