From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniele Pizzolli Subject: Re: traling whitespace inconsistency for inline babel Date: Sat, 31 Jan 2015 18:42:54 +0100 Message-ID: <86fvaq4zj5.fsf@me.localhost.invalid> References: <86k3035hk6.fsf@me.localhost.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHc4V-0006OJ-C3 for emacs-orgmode@gnu.org; Sat, 31 Jan 2015 12:43:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHc4S-00072b-4a for emacs-orgmode@gnu.org; Sat, 31 Jan 2015 12:43:03 -0500 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:41795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHc4R-000726-VZ for emacs-orgmode@gnu.org; Sat, 31 Jan 2015 12:43:00 -0500 In-Reply-To: (Charles C. Berry's message of "Sat, 31 Jan 2015 09:19:40 -0800") 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: "Charles C. Berry" Cc: org-mode mailing list Hello Charles, "Charles C. Berry" writes: > On Sat, 31 Jan 2015, Daniele Pizzolli wrote: > >> Hello Charles, >> >> Thanks for fixing the leading whitespace issue. >> >> I found another, more impacting, inconsistency involving trailing >> whitespace during export in release_8.3beta-780-g37fc86: >> >> The following line in org: >> >> 1 + 4 in R is src_R[:exports results]{1+4}. >> >> Export in latex correctly as: >> >> 1 + 4 in R is 5. >> >> while the following (with the babel result): >> >> 1 + 4 in R is src_R[:exports results]{1+4} {{{results(5)}}}. >> >> export with an extra trailing whitespace in latex: >> >> 1 + 4 in R is 5 . > > Both are wrong for *latex*. Yes, you are right. Thanks and sorry for the noise. A complete restart of emacs fixed this. I made the previous test after an el-get-update org-mode and org-reload. Maybe I misconfigured something. > But I get > > 1 + 4 in R is \texttt{5}. I also forgot to mention that there was no \texttt{} because of custom setting: (setq org-babel-inline-result-wrap "%s"). Sure, now I have the correct output. > In both cases, and when I export to pdf I get `5.' (via copy and > paste). I used export to latex buffer (C-c C-e l L). > I am using > > commit a752684bf0368ddea1f6480157e770c0dd57b7a5 > Author: Nicolas Goaziou > Date: Sat Jan 31 12:46:50 2015 +0100 > > which is the latest in master. Now me too. Thanks again, Daniele