Hi Loris, "Loris Bennett" <loris.benn...@fu-berlin.de> writes:
> How do I get this > > #+RESULTS: > | a | b | c | d | > |-----+---+---+---| > | 1 | 2 | 3 | 4 | > | 5 | 6 | 7 | 8 | You might find use of the post header argument here, http://orgmode.org/manual/post.html In this case it's as simple as this #+NAME: add_hline #+BEGIN_SRC emacs-lisp :var data='((a b c)) h1=1 (require 'cl) (append (subseq data 0 h1 ) (list 'hline) (subseq data h1)) #+END_SRC #+BEGIN_SRC sh :post add_hline(data=*this*) echo "a b c d" echo "1 2 3 4" echo "5 6 7 8" #+END_SRC Probably you can remove the require 'cl. Also, you can generalize the code to take arbitrarily hline positions. Hope it helps. –Rasmus -- Vote for proprietary math!