From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: #+CALL get the first row of output table lost when using latex export Date: Sat, 15 Nov 2014 10:34:56 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpfNK-0002OX-JG for emacs-orgmode@gnu.org; Sat, 15 Nov 2014 10:34:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XpfNJ-0003nT-JG for emacs-orgmode@gnu.org; Sat, 15 Nov 2014 10:34:58 -0500 Received: from mail-oi0-x233.google.com ([2607:f8b0:4003:c06::233]:38168) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpfNJ-0003nM-Dz for emacs-orgmode@gnu.org; Sat, 15 Nov 2014 10:34:57 -0500 Received: by mail-oi0-f51.google.com with SMTP id e131so328779oig.38 for ; Sat, 15 Nov 2014 07:34:56 -0800 (PST) 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: org-mode mailing list Hi, I encounter a problem when I use #+CALL to create a table with latex export. The problem is that the first row of the table is missing, if the table is created with #+CALL. My Emacs version is GNU Emacs 24.4.3 (x86_64-apple-darwin13.4.0, Carbon Version 157 AppKit 1265.21) of 2014-11-04 on Atago.local. The Org-mode version is: 8.2.10 from orgmode.org homepage. I start emacs -q -l emacs.minimal, where emacs.minimal is #+BEGIN_EXAMPLE (add-to-list 'load-path (expand-file-name "~/myconfig/org-8.2.10/lisp")) (add-to-list 'auto-mode-alist '("\\.\\(org\\ |org_archive\\|txt\\)$" . org-mode)) (add-to-list 'load-path (expand-file-name "~/myconfig/org-8.2.10/contrib/lisp")) (org-babel-do-load-languages 'org-babel-load-languages '((python . t) (latex . t))) #+END_EXAMPLE The minimal table example is #+BEGIN_EXAMPLE #+NAME: t1 #+BEGIN_SRC python :exports results return [['A'],None,[2]] #+END_SRC #+CAPTION: T1 #+RESULTS: t1 #+NAME: t2 #+CALL: t1() :exports results #+CAPTION: T2 #+RESULTS: t2 #+END_EXAMPLE The latex output of Table T1 is: #+BEGIN_EXAMPLE \begin{table}[htb] \caption{T1} \centering \begin{tabular}{r} A\\ \hline 2\\ \end{tabular} \end{table} #+END_EXAMPLE The latex output of Table T2 is: #+BEGIN_EXAMPLE \begin{table}[htb] \caption{T2} \centering \begin{tabular}{r} 2\\ \end{tabular} \end{table} #+END_EXAMPLE Compare with the latex output of the two tables, the first row and the \hline in the first table is missing in the second one. Kind regards, Tian Qiu