From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Code block evaluation export bug ? (was: Re: Export an org file from the command line in the background) Date: Wed, 19 Oct 2011 17:22:22 -0400 Message-ID: <7108.1319059342@alphaville.americas.hpqcorp.net> References: <20111019162146.GA24998@client199-154.wlan.hu-berlin.de> <81fwip3q0k.fsf@gmail.com> <20111019201437.GA28039@kenny.fritz.box> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGdak-0003J6-1r for emacs-orgmode@gnu.org; Wed, 19 Oct 2011 17:22:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGdai-0002z2-Cm for emacs-orgmode@gnu.org; Wed, 19 Oct 2011 17:22:26 -0400 Received: from g4t0015.houston.hp.com ([15.201.24.18]:9273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGdai-0002yv-2h for emacs-orgmode@gnu.org; Wed, 19 Oct 2011 17:22:24 -0400 Received: from g4t0018.houston.hp.com (g4t0018.houston.hp.com [16.234.32.27]) by g4t0015.houston.hp.com (Postfix) with ESMTP id D978A86ED for ; Wed, 19 Oct 2011 21:22:22 +0000 (UTC) In-Reply-To: Message from Viktor Rosenfeld of "Wed, 19 Oct 2011 22:14:37 +0200." <20111019201437.GA28039@kenny.fritz.box> 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: emacs-orgmode@gnu.org Cc: nicholas.dokos@hp.com While testing my response to Viktor's question, I ran into a problem. I used a test file that is slightly modified from a previous post of Tom Dye's: --8<---------------cut here---------------start------------->8--- * R tables #+TBLNAME: tbl-1 | column1 | column2 | |---------+---------| | 45 | 34 | | 77 | 56 | #+tblname: tbl-2 | col1 | col2 | |------+------| | a | b | | c | d | #+tblname: tbl-3 | c1 | c2 | |----+----| | A | B | | C | D | #+BEGIN_SRC R :var x=tbl-1 :var y=tbl-2 :var z=tbl-3 :colnames yes :exports both :results value z #+END_SRC --8<---------------cut here---------------end--------------->8--- Evaluating the code block correctly produces the result ,---- | | #+results: | | c1 | c2 | | |----+----| | | A | B | | | C | D | `---- but exporting (to ascii, PDF, HTML or ODT) chops off the first row of the result. For example, here is the ascii: ,---- | | c1 c2 | ----+---- | C D `---- HTML produces: ,---- |
|   c1 c2
| 1  C  D
| 
`---- Latex: ,---- | \begin{center} | \begin{tabular}{ll} | c1 & c2 \\ | \hline | C & D \\ | \end{tabular} | \end{center} `---- ODT: ,---- | | | | | | c1 | | c2 | | | | | | C | | D | | | | | `---- Versions: GNU Emacs 24.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 2011-09-13 Org-mode version 7.7 (release_7.7.396.gfaaa) Nick