emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <eric.schulte@gmx.com>
To: Ista Zahn <istazahn@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Tangle only code block body
Date: Sat, 25 Feb 2012 10:27:27 -0700	[thread overview]
Message-ID: <871upig6ww.fsf@gmx.com> (raw)
In-Reply-To: <4353272.dqVUhrXq6y@arch-desktop> (Ista Zahn's message of "Sat, 18 Feb 2012 12:11:30 -0500")

Hi Ista,

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

Best,

Ista Zahn <istazahn@gmail.com> 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	other threads:[~2012-02-25 17:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-18 17:11 Tangle only code block body Ista Zahn
2012-02-25 17:27 ` Eric Schulte [this message]

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=871upig6ww.fsf@gmx.com \
    --to=eric.schulte@gmx.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=istazahn@gmail.com \
    /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).