From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: #+CALL get the first row of output table lost when using latex export Date: Mon, 17 Nov 2014 08:08:47 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqOx0-0006TB-Cq for emacs-orgmode@gnu.org; Mon, 17 Nov 2014 11:14:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XqOwt-0003Ja-Fq for emacs-orgmode@gnu.org; Mon, 17 Nov 2014 11:14:50 -0500 Received: from iport-acv1-out.ucsd.edu ([132.239.0.176]:52588) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqOwt-0003Ig-7h for emacs-orgmode@gnu.org; Mon, 17 Nov 2014 11:14:43 -0500 In-Reply-To: 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: iemacs@gmail.com Cc: org-mode mailing list On Mon, 17 Nov 2014, iemacs@gmail.com wrote: > Thank you, Charles. And =:colnames yes= does work here. But the > results are the same when I evaluate t1 and t2 with > `org-babel-execute-maybe'. > > When I take another try, new problem seems to occur. > > The test file is: > #+BEGIN_EXAMPLE > #+NAME: t1 > #+BEGIN_SRC python :exports results > return [['A'],None,[2],None,[3]] > #+END_SRC > > #+CAPTION: T1 > #+RESULTS: t1 > > #+NAME: t2 > #+CALL: t1() :exports results > > #+CAPTION: T2 > #+RESULTS: t2 > #+END_EXAMPLE > > The results of `org-babel-execute-maybe' on t1 and t2 are identical: > #+BEGIN_SRC org > | A | > |---| > | 2 | > |---| > | 3 | > #+END_SRC Not in my world (unless you add `:hlines'). ,---- | #+NAME: t1 | #+BEGIN_SRC python :exports results | return [['A'],None,[2],None,[3]] | #+END_SRC | | #+CAPTION: T1 | #+RESULTS: t1 | | A | | |---| | | 2 | | |---| | | 3 | | | #+NAME: t2 | #+CALL: t1() :exports results | | #+CAPTION: T2 | #+RESULTS: t2 | | A | | | 2 | | | 3 | `---- ob-python.el seems to be doing its own thing here. What you see in the second instance is the usual Babel output for a table. In my view this is a bug in ob-python.el. See: (info "(org) hlines") for the proper idiom. HTH, Chuck