From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Creating hline in table from source block? Date: Mon, 25 Nov 2013 19:41:55 -0700 Message-ID: <8738mjdguk.fsf@gmail.com> References: <8738mkiwhx.fsf@hornfels.zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vl8cB-0004Bm-TQ for emacs-orgmode@gnu.org; Mon, 25 Nov 2013 21:43:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vl8c7-0001dK-He for emacs-orgmode@gnu.org; Mon, 25 Nov 2013 21:43:03 -0500 Received: from mail-pb0-x234.google.com ([2607:f8b0:400e:c01::234]:46354) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vl8c7-0001dG-AE for emacs-orgmode@gnu.org; Mon, 25 Nov 2013 21:42:59 -0500 Received: by mail-pb0-f52.google.com with SMTP id uo5so7033131pbc.25 for ; Mon, 25 Nov 2013 18:42:57 -0800 (PST) In-Reply-To: <8738mkiwhx.fsf@hornfels.zedat.fu-berlin.de> (Loris Bennett's message of "Mon, 25 Nov 2013 11:52:42 +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: Loris Bennett Cc: emacs-orgmode@gnu.org "Loris Bennett" writes: > Dear List, > > This > > #+BEGIN_SRC sh > echo "a b c d" > echo "1 2 3 4" > echo "5 6 7 8" > #+END_SRC > > produces this: > > #+RESULTS: > | a | b | c | d | > | 1 | 2 | 3 | 4 | > | 5 | 6 | 7 | 8 | > > How do I get this > > #+RESULTS: > | a | b | c | d | > |-----+---+---+---| > | 1 | 2 | 3 | 4 | > | 5 | 6 | 7 | 8 | > > ? > Most easily done with an Emacs Lisp code block. #+BEGIN_SRC emacs-lisp '((a b c d) hline (1 2 3 4) (5 6 7 8)) #+END_SRC #+RESULTS: | a | b | c | d | |---+---+---+---| | 1 | 2 | 3 | 4 | | 5 | 6 | 7 | 8 | -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D