From mboxrd@z Thu Jan 1 00:00:00 1970 From: Austin Frank Subject: Re: insert .org file into other .org file by link Date: Wed, 28 Jul 2010 14:50:33 -0400 Message-ID: References: <4C4FF083.9030109@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1005428682==" Return-path: Received: from [140.186.70.92] (port=39476 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OeBiK-0004bE-Mr for emacs-orgmode@gnu.org; Wed, 28 Jul 2010 14:50:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OeBiJ-000503-1g for emacs-orgmode@gnu.org; Wed, 28 Jul 2010 14:50:48 -0400 Received: from lo.gmane.org ([80.91.229.12]:48630) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OeBiI-0004ze-OS for emacs-orgmode@gnu.org; Wed, 28 Jul 2010 14:50:47 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OeBiG-0004FP-Ss for emacs-orgmode@gnu.org; Wed, 28 Jul 2010 20:50:44 +0200 Received: from urwireless-dhcp-128-151-186-182.wireless.rochester.edu ([128.151.186.182]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Jul 2010 20:50:44 +0200 Received: from austin.frank by urwireless-dhcp-128-151-186-182.wireless.rochester.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Jul 2010 20:50:44 +0200 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@gnu.org --===============1005428682== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Wed, Jul 28 2010, Rainer M Krug wrote: > I have a .org file (lets call it basic.org), which creates me a report > from a simulation (of a variable x, saved from R) - it works fine for > export to html and pdf. > > Now I want to create a report (all.org), which should include the report > from basic.org 10 times, but basic.report should be created from > different simulations (X1, X2, X3, ..., X10). > > How can I acieve this, without having to copy - paste the .org file in > 10 times? I would like to have a kind of dynamic lining, so that I can > > a) specify the name of the variable to be analysed > b) the all.org is using basic.org to create the "all" report, so that > when I change basic.org, the report based on all.org is also changed. To start, you probably want to use the #+SETUPFILE and #+INCLUDE directives [fn:1] [fn:2]. An untested Babel-based dynamic solution might look something like =2D-8<---------------cut here---------------start------------->8--- #+BEGIN_SRC perl :results value org :var $n=3D10 $file=3Dbasic.org # I've never actually used per with babel, # so don't know how the :var headers work exactly for (my $i =3D 0; $i < $n; $i++) { print "#+INCLUDE: $file\n"; } #+END_SRC =2D-8<---------------cut here---------------end--------------->8--- Hope that helps! Let me know what you come up with. /au Footnotes: [fn:1] [[info:org:Export%20options][Export options]] [fn:2] [[info:org:Include%20files][Include files]] =2D-=20 Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) iEYEARECAAYFAkxQe/oACgkQlHMl2/XbR4GYWQCgvsXTr4yFa+Qh8nat6osSMWUl X6UAn13gcvJFXXQFBqzQ7bFO38VCIxWO =2eBg -----END PGP SIGNATURE----- --=-=-=-- --===============1005428682== 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 --===============1005428682==--