emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Charles C. Berry" <ccberry@ucsd.edu>
To: Joon Ro <joon.ro@outlook.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Tangling #+Results block?
Date: Mon, 22 Jun 2015 19:05:33 -0700	[thread overview]
Message-ID: <alpine.OSX.2.11.1506221858340.1083@charles-berrys-macbook.local> (raw)
In-Reply-To: <COL125-W42F7231D6DD95DDA8BBF7DEBA10@phx.gbl>

On Mon, 22 Jun 2015, Joon Ro wrote:

> I found the following thread, and tried to follow it, but it did not work:
> https://lists.gnu.org/archive/html/emacs-orgmode/2010-11/msg00390.html

See:

http://orgmode.org/manual/Noweb-reference-syntax.html#Noweb-reference-syntax

> From: joon.ro@outlook.com
> To: emacs-orgmode@gnu.org
> Date: Sun, 21 Jun 2015 21:40:17 -0700
> Subject: [O] Tangling #+Results block?
>
>
>
>
> Is it possible to tangle #+RESULTS: block? For example,
> #+BEGIN_SRC rst :tangle ./test.txt :noweb yes
> <<Tangle_Test>>
> #+END_SRC


Make that

: <<Tangle_Test()>>

And use

: #+NAME: Tangle_Test

to name this block:

> #+BEGIN_SRC python :exports results :results output raw
>  print("Printed Results")
> #+END_SRC
> #+RESULTS: 
> Printed Results
>

> And I want to tangle #+RESULTS: part, not the actual Python source
> code, so the tangled test.txt file has the following:
> Printed Results

HTH,

Chuck

  reply	other threads:[~2015-06-23  2:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-22  4:40 Tangling #+Results block? Joon Ro
2015-06-22 17:22 ` Joon Ro
2015-06-23  2:05   ` Charles C. Berry [this message]
2015-06-23  2:55     ` Joon Ro

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=alpine.OSX.2.11.1506221858340.1083@charles-berrys-macbook.local \
    --to=ccberry@ucsd.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=joon.ro@outlook.com \
    /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).