From: Austin Frank <austin.frank@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: insert .org file into other .org file by link
Date: Wed, 28 Jul 2010 14:50:33 -0400 [thread overview]
Message-ID: <m0k4of5tl2.fsf@malibu.rochester.rr.com> (raw)
In-Reply-To: 4C4FF083.9030109@gmail.com
[-- Attachment #1.1: Type: text/plain, Size: 1596 bytes --]
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
--8<---------------cut here---------------start------------->8---
#+BEGIN_SRC perl :results value org :var $n=10 $file=basic.org
# I've never actually used per with babel,
# so don't know how the :var headers work exactly
for (my $i = 0; $i < $n; $i++) {
print "#+INCLUDE: $file\n";
}
#+END_SRC
--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]]
--
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc
[-- Attachment #1.2: Type: application/pgp-signature, Size: 194 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
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
next prev parent reply other threads:[~2010-07-28 18:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-28 8:55 insert .org file into other .org file by link Rainer M Krug
2010-07-28 18:50 ` Austin Frank [this message]
2010-07-29 7:27 ` Rainer M Krug
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m0k4of5tl2.fsf@malibu.rochester.rr.com \
--to=austin.frank@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.