emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daniele Pizzolli <dan@toel.it>
To: "Charles C. Berry" <ccberry@ucsd.edu>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: traling whitespace inconsistency for inline babel
Date: Sat, 31 Jan 2015 18:42:54 +0100	[thread overview]
Message-ID: <86fvaq4zj5.fsf@me.localhost.invalid> (raw)
In-Reply-To: <alpine.OSX.2.00.1501310904180.426@charles-berrys-macbook.local> (Charles C. Berry's message of "Sat, 31 Jan 2015 09:19:40 -0800")

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 <mail@nicolasgoaziou.fr>
>   Date:   Sat Jan 31 12:46:50 2015 +0100
>
> which is the latest in master.

Now me too. Thanks again,
Daniele

      reply	other threads:[~2015-01-31 17:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-31 11:13 traling whitespace inconsistency for inline babel Daniele Pizzolli
2015-01-31 17:19 ` Charles C. Berry
2015-01-31 17:42   ` Daniele Pizzolli [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86fvaq4zj5.fsf@me.localhost.invalid \
    --to=dan@toel.it \
    --cc=ccberry@ucsd.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).