emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Tangle only code block body
@ 2012-02-18 17:11 Ista Zahn
  2012-02-25 17:27 ` Eric Schulte
  0 siblings, 1 reply; 2+ messages in thread
From: Ista Zahn @ 2012-02-18 17:11 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,

Is there a way to tangle just the body of code blocks, without any header 
argurments? For example when I tangle this file

##### begin example #####

* test
#+name: testplot
#+begin_src R :results output graphics :file tmp.png :tangle tmp.R
  plot(1:10)
#+end_src

##### end example #####

I get

png(filename="tmp.png")
plot(1:10)
dev.off()

but I want just

plot(1:10)


I've tried removing the %flag setting in org-babel-exp-code-template but it 
didn't seem to have any effect. 

Thanks for any pointers,

Ista

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

end of thread, other threads:[~2012-02-25 17:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-18 17:11 Tangle only code block body Ista Zahn
2012-02-25 17:27 ` Eric Schulte

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