emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] PROPERTIES attached to results blocks - Was: Set or update times


From: Charles C. Berry
Subject: Re: [O] PROPERTIES attached to results blocks - Was: Set or update timestamp after evaluation of code block?
Date: Tue, 22 Sep 2015 08:52:41 -0700
User-agent: Alpine 2.20 (OSX 67 2015-01-07)

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

Grant Rettke <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]