From mboxrd@z Thu Jan 1 00:00:00 1970 From: Liam Healy Subject: Re: Restore raw output in LaTeX export from in-line code block Date: Tue, 1 Oct 2013 19:36:19 -0400 Message-ID: References: <87mwmvqum2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR9Uj-00020b-Ha for emacs-orgmode@gnu.org; Tue, 01 Oct 2013 19:36:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VR9Uf-0002fQ-7e for emacs-orgmode@gnu.org; Tue, 01 Oct 2013 19:36:45 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:43855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR9Uf-0002fA-1H for emacs-orgmode@gnu.org; Tue, 01 Oct 2013 19:36:41 -0400 Received: by mail-pd0-f182.google.com with SMTP id r10so53830pdi.41 for ; Tue, 01 Oct 2013 16:36:39 -0700 (PDT) In-Reply-To: <87mwmvqum2.fsf@gmail.com> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: Org-mode mailing list On Sun, Sep 29, 2013 at 3:46 PM, Eric Schulte wrote: > Liam Healy writes: > >> I noticed that raw results from in-line code blocks were disappearing in >> the new LaTeX exporter, and bisected the repo to the change 7117ad4f92. I >> have created the attached patch to fix the problem and restore the previous >> behavior. >> >> example file >> * Test >> 1. Inline common lisp raw: src_lisp[:results raw]{(+ 2 2)}, should >> say 4. >> >> >> Desired output, restored by patch >> \item Inline common lisp raw: 4, should say 4. >> Output without patch >> \item Inline common lisp raw: , should say 4. >> >> If this looks right, please apply. >> >> Liam >> > > Hi Liam, > > You're actually noticing a symptom of an error in the way lisp code > blocks were handling results (conflating the output/results and the > scalar/vector distinction). I've just pushed up a fix, please let me > know if you continue to see these types of errors. > > Best, > > -- > Eric Schulte > https://cs.unm.edu/~eschulte > PGP: 0x614CA05D Thanks Eric. Indeed, your patches work to produce the correct output for that case. Now I have another problem. I'm really not interested in producing "4" of course, what I do is use lisp to produce LaTeX. For example, + Inline common lisp raw: $src_lisp[:results raw]{(format nil "\\sqrt{2~c" (code-char 125))}$, should say "$\sqrt{2}$". Which used to produce (Org-mode version 7.9.4) the right thing, \item Inline common lisp raw: $\sqrt{2}$, should say ``$\sqrt{2}$". and now (Org-mode version 8.2.1) doesn't evaluate the lisp, \item Inline common lisp raw: $src_lisp[:results raw]{(format nil "\\sqrt{2~c" (code-char 125))}$, should say "$\sqrt{2}$". Is this a bug? How do I restore the evaluation of the src_lisp in this context? Thanks. Liam