From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: [babel] Tangle multiple sections source blocks into single file without #+source: ... Date: Fri, 28 May 2010 08:34:52 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0425057685==" Return-path: Received: from [140.186.70.92] (port=54220 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHt9k-0004iT-9V for emacs-orgmode@gnu.org; Fri, 28 May 2010 02:34:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHt9i-0003E3-Hq for emacs-orgmode@gnu.org; Fri, 28 May 2010 02:34:55 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:57304) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHt9i-0003Dh-Db for emacs-orgmode@gnu.org; Fri, 28 May 2010 02:34:54 -0400 Received: by wyb40 with SMTP id 40so235072wyb.0 for ; Thu, 27 May 2010 23:34:52 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --===============0425057685== Content-Type: multipart/alternative; boundary=0016e649c7d25abdb30487a1b4bb --0016e649c7d25abdb30487a1b4bb Content-Type: text/plain; charset=ISO-8859-1 Hi I am using org-babel to write a simulation model and the accompanying documentation and it works as expected. But I have many source blocks which I want to tangle into the same source file. At the moment, I am using "#+source: BLOCKNAME" (see below). But it is easy to forget to add the block name to the actual tangle block at the bottom. Is there a way of: 1) tangle all source blocks into the same file? As far as I am aware, a new tangle to the same file name, overwrites the already existing file --- I would like to append the new code block to the existing file. or 2) is there a keyboard shortcut, that I can add the name of the block to the actual tangle block automatically, when the e.g. block name is selected? Thanks, Rainer * Here I am doing this #+source: Block1 #+begin_src R some code #+end_src * Here I am doing that #+source: Block2 #+begin_src R some code #+end_src * Creation of Source.R #+begin_src R :tangle source.R <> <> #+end_src -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax: +27 - (0)86 516 2782 Fax: +49 - (0)321 2125 2244 email: Rainer@krugs.de Skype: RMkrug Google: R.M.Krug@gmail.com --0016e649c7d25abdb30487a1b4bb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi

I am using org-babel to write a simulation model and the accompan= ying documentation and it works as expected. But I have many source blocks = which I want to tangle into the same source file. At the moment, I am using= "#+source: BLOCKNAME" (see below). But it is easy to forget to a= dd the block name to the actual tangle block at the bottom. Is there a way = of:

1) tangle all source blocks into the same file? As far as I am aware, a= new tangle to the same file name, overwrites the already existing file ---= I would like to append the new code block to the existing file.

or

2) is there a keyboard shortcut, that I can add the name of the b= lock to the actual tangle block automatically, when the e.g. block name is = selected?

Thanks,

Rainer
* Here I am doing this
#+sour= ce: Block1
#+begin_src R
=A0 some code
#+end_src

* Here I am doing that#+source: Block2
#+begin_src R
=A0 some code
#+end_src

* Creation of Source.R
#+begin_src R :tangle source.R
=A0 <&l= t;cBlock1>>
=A0 <<cBlock2>>
#+end_src

-- NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology,= SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building<= br>Office Suite 2039
Stellenbosch University
Main Campus, Merriman Av= enue
Stellenbosch
South Africa

Cell: =A0 =A0 =A0 =A0 =A0 +27 -= (0)83 9479 042
Fax: =A0 =A0 =A0 =A0 =A0 =A0+27 - (0)86 516 2782
Fax: =A0 =A0 =A0 =A0 = =A0 =A0+49 - (0)321 2125 2244
email: =A0 =A0 =A0 =A0 =A0Rainer@krugs.de

Skype: =A0 =A0 =A0 =A0 =A0RMk= rug
Google: =A0 =A0 =A0 =A0 R.M.Kr= ug@gmail.com

--0016e649c7d25abdb30487a1b4bb-- --===============0425057685== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0425057685==--