emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Tangle only code block body


From: Eric Schulte
Subject: Re: [O] Tangle only code block body
Date: Sat, 25 Feb 2012 10:27:27 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux)

Hi Ista,

Use the :no-expand header argument. See
http://orgmode.org/manual/no_002dexpand.html

Best,

Ista Zahn <address@hidden> 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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]