From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: Exporting caption with raw results from inline source blocks Date: Sat, 27 Apr 2013 13:18:49 +0200 Message-ID: <87bo90w7ae.fsf@med.uni-goettingen.de> References: <87ehe0xu10.fsf@med.uni-goettingen.de> <87k3npwlym.fsf@med.uni-goettingen.de> <87fvydwjkc.fsf@med.uni-goettingen.de> <87a9oli9vo.fsf@gmail.com> <87wqrp5am5.fsf@gmail.com> <87ip393uy3.fsf@gmail.com> <86fvyczdrt.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UW39n-0007a8-Ml for emacs-orgmode@gnu.org; Sat, 27 Apr 2013 07:19:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UW39m-00050r-JX for emacs-orgmode@gnu.org; Sat, 27 Apr 2013 07:19:07 -0400 Received: from plane.gmane.org ([80.91.229.3]:59494) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UW39m-00050n-CV for emacs-orgmode@gnu.org; Sat, 27 Apr 2013 07:19:06 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UW39h-0008PY-Dz for emacs-orgmode@gnu.org; Sat, 27 Apr 2013 13:19:01 +0200 Received: from vpn-2114.gwdg.de ([134.76.2.114]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Apr 2013 13:19:01 +0200 Received: from andreas.leha by vpn-2114.gwdg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Apr 2013 13:19:01 +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 "Sebastien Vauban" writes: > Hi Eric, > > Eric Schulte wrote: >> Nicolas Goaziou writes: >>> Eric Schulte writes: >>> >>>> I'm loath to add /another/ results keyword, but perhaps it would be nice >>>> to be able to specify that you want the results processed (e.g, >>>> stripping the newline), but you don't want them to be wrapped as an >>>> example. An alternate approach which may be preferable would be to >>>> expose a defcustom along the lines of org-babel-inline-result-wrapper, >>>> which could be used by org-babel-examplize-region instead of "=%s=". >>> >>> What about always removing trailing newline characters in _inline_ src >>> blocks results? >> >> That is certainly an option. It could be argued that the point of "raw" >> is to not change the output at all > > That was one point I tried to attract attention onto: since short, we already > modify the "raw" output (by "cycling" on tables-alike results). We don't have > anymore a real "raw" results which would completely stay untouched. > I'd also vote for not modifying raw results -- at least in the inline case. In the case of the added linebreak, I think it is easy to add from inside the code block it if I want it, but hard to remove. For me it seems really weird that I have to post-process a 'raw' result to get a 'really raw' result. Also the added newline is inconsistent with the non-raw result, which gets exported as \texttt{11} and not \texttt{11\\}. And the added '\n' breaks (at least) inline results in captions. Does not adding the '\n' break anything at all? Having said all that, I am also ok with the org-babel-inline-result-wrap defcustom. Thanks for implementing that, Eric. Regards, Andreas