From: Rasmus Pank Roulund <rasmus@gmx.us>
To: "Thomas S. Dye" <tsd@tsdye.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Best practices for literate programming [was: Latex export of tables]
Date: Sun, 21 Apr 2013 19:25:54 +0200 [thread overview]
Message-ID: <87vc7fpzh9.fsf@pank.eu> (raw)
In-Reply-To: <m1fvyn7hht.fsf@poto.westell.com> (Thomas S. Dye's message of "Thu, 18 Apr 2013 09:42:38 -1000")
Dear Tom,
> I suppose this depends on what is meant by "reproducible."
>
> My goal is to produce a compendium as defined by Gentleman and Lang
> (see Gentleman R, Lang DT (2004). "Statistical Analyses and Reproducible
> Research." Technical report, Bioconductor Project. URL
> http://www.bepress.com/bioconductor/paper2).
>
> I keep the init.el file as a babel source block with the reproducible
> document, so it can be tangled. I also have an editing setup in a babel
> source block that activates many of the same features handled by the
> init.el file, but also configures the new exporter to look for init.el
> (which might have a different name). The filters are all part of the Org
> document, too, and get pulled into the init.el file with noweb
> references.
My issue here is that this approach might lead to copy-paste
"preambles" which may or may not be desirable. I can certainly see
the attraction in being able to just tangle the setup. In fact for my
thesis I also had a preamble.tex blog in my file. Your proposed setup
here is perhaps better in that it uses emacs-lisp.
Still, say I'm working on two files A and B. If I fix a bug in
"preamble" A I would have to manually copy it over to B.
Thus, the main question is how to distribute updates? I guess one
could keep a separate file, but then we are back at square one in a
way. . .
One possibility might be a file structure like this
setup.org
A/project-A.org
A/setup-A.org
B/project-B.org
B/setup-B.org
where A and B both has a block like
#+BEGIN_SRC org
* Preamlbe :noexport:
#+INCLUDE: "../setup.org"
#+INCLUDE: "setup-A.org"
#+END_SRC
To ship it off one would only have to write a command to replacing
#+INCLUDE with its content. The exporter could likely be used for
this and one could produce an archive version when signing off a
project.
Even more robust, #+INCLUDE: would look for files in org-directory (it
might already do, I didn't check).
Am I missing something obvious (probably?) in the above stream of
random thoughts? It's kind of a LaTeX-ish way of dealing with it, I
guess.
> I am able to distribute the compendium, typically as a single
> document (sometimes with associated data files produced by an
> on-line service that can't be used programmatically), which I
> believe is a good step toward reproducibility.
Agreed.
–Rasmus
--
Send from my Emacs
next prev parent reply other threads:[~2013-04-21 17:26 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-12 8:06 Latex export of tables Vikas Rawal
2013-04-14 23:29 ` Suvayu Ali
2013-04-16 11:56 ` Vikas Rawal
2013-04-16 13:13 ` Thomas Alexander Gerds
2013-04-16 17:39 ` Suvayu Ali
2013-04-16 20:07 ` Thomas S. Dye
2013-04-16 21:39 ` Suvayu Ali
2013-04-16 23:45 ` Thomas S. Dye
2013-04-17 10:21 ` Myles English
2013-04-16 22:10 ` Best practices for literate programming [was: Latex export of tables] Vikas Rawal
2013-04-17 0:06 ` Thomas S. Dye
2013-04-18 16:53 ` Rasmus
2013-04-18 17:59 ` Aaron Ecay
2013-04-18 18:25 ` Rasmus
2013-04-18 19:48 ` Achim Gratz
2013-04-18 19:42 ` Thomas S. Dye
2013-04-21 17:25 ` Rasmus Pank Roulund [this message]
2013-04-17 6:39 ` Suvayu Ali
2013-04-17 9:55 ` Rainer M. Krug
2013-04-17 10:10 ` Suvayu Ali
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=87vc7fpzh9.fsf@pank.eu \
--to=rasmus@gmx.us \
--cc=emacs-orgmode@gnu.org \
--cc=tsd@tsdye.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).