From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: hlines in babel output Date: Sat, 23 Feb 2013 14:38:13 -0700 Message-ID: <87d2vqzp6i.fsf@gmail.com> References: <871ucnr5ud.fsf@pank.eu> <871uc667xa.fsf@pank.eu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9Mo9-00006i-DL for emacs-orgmode@gnu.org; Sat, 23 Feb 2013 16:39:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9Mo5-0005X5-4W for emacs-orgmode@gnu.org; Sat, 23 Feb 2013 16:39:01 -0500 Received: from mail-pa0-f42.google.com ([209.85.220.42]:33790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9Mo4-0005Wr-Um for emacs-orgmode@gnu.org; Sat, 23 Feb 2013 16:38:57 -0500 Received: by mail-pa0-f42.google.com with SMTP id kq12so1084120pab.29 for ; Sat, 23 Feb 2013 13:38:55 -0800 (PST) In-Reply-To: <871uc667xa.fsf@pank.eu> (rasmus@gmx.us's message of "Sat, 23 Feb 2013 22:23:45 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org Rasmus writes: >> I have the following Org document where I would like to add some extra >> hlines to the output. I'm using babel. I tried the ascii package but >> couldn't find anything giving me extra hlines. I'd also prefer to >> stick to just babel. > > I'm still looking for a good way to insert horizontal lines into > generated tables. I have been trying to use Emacs Lisp to use > org-table-insert-hline using (i) babel and (ii) noweb. For (i) I need > to add an hline object as the second-to-last object, but I havne't > been successful so far. > > I'd appreciate any hints. > First be sure to read the relevant page of the manual [1]. After that, something like the following should allow for arbitrary hline insertion. #+name: test #+begin_src sh seq 10 #+end_src #+begin_src emacs-lisp :var x=test (append (subseq x 0 2) (list 'hline) (subseq x 2)) #+end_src #+RESULTS: | 1 | | 2 | |----| | 3 | | 4 | | 5 | | 6 | | 7 | | 8 | | 9 | | 10 | Hope this helps, Footnotes: [1] http://orgmode.org/manual/hlines.html -- Eric Schulte http://cs.unm.edu/~eschulte