From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: How to handle an inline multiline noweb reference Date: Thu, 29 Nov 2018 15:16:59 -0700 Message-ID: References: <87wooykg59.fsf@mbork.pl> <87bm69k7ce.fsf@gmail.com> <87woowflja.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44247) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSUcL-00023x-TN for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 17:17:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSUcK-0002Yk-0y for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 17:17:05 -0500 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]:38523) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gSUcJ-0002Y2-M0 for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 17:17:03 -0500 Received: by mail-lj1-x22b.google.com with SMTP id c19-v6so3193562lja.5 for ; Thu, 29 Nov 2018 14:17:02 -0800 (PST) In-Reply-To: <87woowflja.fsf@ucl.ac.uk> 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" To: Samuel Wales , Grant Rettke , Org-mode On 11/28/18, Eric S Fraga wrote: > The output (or more generally the results) of one src block is passed > directly as input to another using the :post argument. that helps. i'm not familiar with many languages. shell and lisp work best for me, but in this case saying that clarifies. not sure where *this* comes in. perhaps it is a variable in the second block being sent to the first block? > #+begin_src org > ,#+name: doubleit > ,#+begin_src octave :results output :var x=3D[0.1] > disp(2*x) > ,#+end_src > > ,#+name: test > ,#+begin_src octave :post doubleit(x=3D*this*) > 2*3.14 > ,#+end_src > > ,#+results: test > : 12.560 > #+end_src > > HTH, > eric > > -- > Eric S Fraga via Emacs 27.0.50, Org release_9.1.14-1035-gfeb442 > --=20 The Kafka Pandemic: The disease DOES progress. MANY people have died from it. And ANYBODY can get it at any time. "You=E2=80=99ve really gotta quit this and get moving, because this is murd= er by neglect." --- .