emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Charles C. Berry" <ccberry@ucsd.edu>
To: Rainer M Krug <Rainer@krugs.de>
Cc: John Kitchin <jkitchin@andrew.cmu.edu>,
	"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>,
	Grant Rettke <gcr@wisdomandwonder.com>
Subject: Re: PROPERTIES attached to results blocks - Was: Set or update timestamp after evaluation of code block?
Date: Tue, 22 Sep 2015 08:52:41 -0700	[thread overview]
Message-ID: <alpine.OSX.2.20.1509220838080.602@charles-berrys-macbook.local> (raw)
In-Reply-To: <m2io72hook.fsf_-_@krugs.de>

On Tue, 22 Sep 2015, Rainer M Krug wrote:

> Grant Rettke <gcr@wisdomandwonder.com> writes:
>
>> Might be nice to have properties attached to result blocks. That is a nice idea.
>
> True. These could be used for in the long run many
> purposes, like formating for export. If the formating would be defined
> in the properties of the result block, it would make it easy to have
> different formating for export when using multiple result blocks.
>

This is available through babel as in the `latex' language src blocks.

Add a new babel language - `results', says. Use :wrap or :post to setup 
the `results' src block:

--8<---------------cut here---------------start------------->8---

#+BEGIN_SRC emacs-lisp :wrap "src results :properties abc"
1
#+END_SRC

#+RESULTS:
#+BEGIN_src results :properties abc
1
#+END_src

--8<---------------cut here---------------end--------------->8---

... then define a babel language 'results' along the line of ob-latex.el 
with suitable `org-babel-header-args:results' and you are there.

HTH,

Chuck

  reply	other threads:[~2015-09-22 15:52 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-21 12:46 Set or update timestamp after evaluation of code block? Rainer M Krug
2015-09-21 13:17 ` Eric S Fraga
2015-09-21 13:42   ` Rainer M Krug
2015-09-21 14:09     ` Eric S Fraga
2015-09-21 15:15       ` Rainer M Krug
2015-09-21 15:10     ` John Kitchin
2015-09-21 18:43       ` Rainer M Krug
2015-09-21 19:27         ` John Kitchin
2015-09-22  7:52           ` Rainer M Krug
2015-09-22  9:45             ` Rainer M Krug
2015-09-21 19:53         ` Grant Rettke
2015-09-22  7:56           ` PROPERTIES attached to results blocks - Was: " Rainer M Krug
2015-09-22 15:52             ` Charles C. Berry [this message]
2015-09-21 15:37     ` Jorge A. Alfaro-Murillo
2015-09-21 18:37       ` 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

  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=alpine.OSX.2.20.1509220838080.602@charles-berrys-macbook.local \
    --to=ccberry@ucsd.edu \
    --cc=Rainer@krugs.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=gcr@wisdomandwonder.com \
    --cc=jkitchin@andrew.cmu.edu \
    /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).