From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: [babel] export of inline source with wrapped results Date: Tue, 08 May 2012 22:24:13 +0200 Message-ID: <87ehqu2zgy.fsf@med.uni-goettingen.de> References: <87ipg631ku.fsf@med.uni-goettingen.de> <87d36eimig.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRqyA-0003Pu-GV for emacs-orgmode@gnu.org; Tue, 08 May 2012 16:25:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SRqy8-0004VH-Et for emacs-orgmode@gnu.org; Tue, 08 May 2012 16:25:14 -0400 Received: from plane.gmane.org ([80.91.229.3]:36829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRqy8-0004V2-84 for emacs-orgmode@gnu.org; Tue, 08 May 2012 16:25:12 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SRqy3-00039C-G5 for emacs-orgmode@gnu.org; Tue, 08 May 2012 22:25:07 +0200 Received: from vpn-2130.gwdg.de ([134.76.2.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 May 2012 22:25:07 +0200 Received: from andreas.leha by vpn-2130.gwdg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 May 2012 22:25:07 +0200 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: emacs-orgmode@gnu.org Eric Schulte writes: > Andreas Leha writes: > >> Hi all, >> >> I experience a problem when exporting the results of inline source >> blocks when they are wrapped: the export (using the "old" latex >> exporter) contains ":RESULTS:" and ":END:" >> >> Here is an example src_R[:results org wrap]{tmp <- "inline"} call. >> >> And the LaTeX export of this is >> #+begin_latex >> Here is an example :RESULTS: >> inline:END: >> call. >> #+end_latex >> >> Is this a known bug? >> >> Regards, >> Andreas >> > > What would you expect to see? > > I don't it was ever anticipated that anyone would wrap inline results. > > Best, Hi Eric, thanks for this fast response. I would expect *not* to see the ":RESULTS:", ":END:" in the export. I consider them "org mode internal" just like "#+begin_src ... #+end_src" and can't see a use of them being in the exported document. Why would I wrap inline results? Good question. It has been quite useful, but it seems that use has gone. The problem I was trying to tackle with the wrapping is that of multiple executions of an inline source block leading to multiple results. Like I executed this twice: src_R{1} =1= =1=. I think once wrapping was a solution to this, but maybe I am wrong here. In any case, now it isn't: Again executed twice: src_R[:results wrap]{1} :RESULTS: 1:END: :RESULTS: 1:END: So, here is the follow-up question: How to make inline replace their results (as other code blocks do)? Regards, Andreas