emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Tangling #+Results block?
@ 2015-06-22  4:40 Joon Ro
  2015-06-22 17:22 ` Joon Ro
  0 siblings, 1 reply; 4+ messages in thread
From: Joon Ro @ 2015-06-22  4:40 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 410 bytes --]

Is it possible to tangle #+RESULTS: block? For example,
#+BEGIN_SRC rst :tangle ./test.txt :noweb yes<<Tangle_Test>>#+END_SRC
#+BEGIN_SRC python :exports results :results output rawprint("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
Best,Joon

 		 	   		  

[-- Attachment #2: Type: text/html, Size: 1053 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Tangling #+Results block?
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Joon Ro @ 2015-06-22 17:22 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 711 bytes --]

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
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
#+BEGIN_SRC python :exports results :results output rawprint("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
Best,Joon

 		 	   		   		 	   		  

[-- Attachment #2: Type: text/html, Size: 1801 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Tangling #+Results block?
  2015-06-22 17:22 ` Joon Ro
@ 2015-06-23  2:05   ` Charles C. Berry
  2015-06-23  2:55     ` Joon Ro
  0 siblings, 1 reply; 4+ messages in thread
From: Charles C. Berry @ 2015-06-23  2:05 UTC (permalink / raw)
  To: Joon Ro; +Cc: emacs-orgmode@gnu.org

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Tangling #+Results block?
  2015-06-23  2:05   ` Charles C. Berry
@ 2015-06-23  2:55     ` Joon Ro
  0 siblings, 0 replies; 4+ messages in thread
From: Joon Ro @ 2015-06-23  2:55 UTC (permalink / raw)
  To: Charles C. Berry; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 213 bytes --]

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

I have read that documentation several times - I cannot believe I missed that. Thank you very much. 		 	   		  

[-- Attachment #2: Type: text/html, Size: 538 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-06-23  2:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2015-06-23  2:55     ` Joon Ro

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).