From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Tangle only code block body Date: Sat, 25 Feb 2012 10:27:27 -0700 Message-ID: <871upig6ww.fsf@gmx.com> References: <4353272.dqVUhrXq6y@arch-desktop> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1LPI-0005bB-5y for emacs-orgmode@gnu.org; Sat, 25 Feb 2012 12:27:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1LPC-00042o-IU for emacs-orgmode@gnu.org; Sat, 25 Feb 2012 12:27:39 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:59362) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1S1LPC-00042b-BG for emacs-orgmode@gnu.org; Sat, 25 Feb 2012 12:27:34 -0500 In-Reply-To: <4353272.dqVUhrXq6y@arch-desktop> (Ista Zahn's message of "Sat, 18 Feb 2012 12:11:30 -0500") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ista Zahn Cc: emacs-orgmode@gnu.org Hi Ista, Use the :no-expand header argument. See http://orgmode.org/manual/no_002dexpand.html Best, Ista Zahn writes: > 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 > > > -- Eric Schulte http://cs.unm.edu/~eschulte/