From: Ista Zahn <istazahn@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Tangle only code block body
Date: Sat, 18 Feb 2012 12:11:30 -0500 [thread overview]
Message-ID: <4353272.dqVUhrXq6y@arch-desktop> (raw)
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
next reply other threads:[~2012-02-18 17:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-18 17:11 Ista Zahn [this message]
2012-02-25 17:27 ` Tangle only code block body Eric Schulte
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=4353272.dqVUhrXq6y@arch-desktop \
--to=istazahn@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).