From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [RFC] Rewrite radio tables Date: Mon, 25 Aug 2014 21:20:22 +0200 Message-ID: <87sikkidft.fsf@nicolasgoaziou.fr> References: <8761hh6662.fsf@nicolasgoaziou.fr> <87tx501riy.fsf@alphaville.bos.redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLznw-00049T-Ru for emacs-orgmode@gnu.org; Mon, 25 Aug 2014 15:19:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XLznm-0007tk-ND for emacs-orgmode@gnu.org; Mon, 25 Aug 2014 15:19:48 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:35930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLznm-0007ta-H3 for emacs-orgmode@gnu.org; Mon, 25 Aug 2014 15:19:38 -0400 In-Reply-To: <87tx501riy.fsf@alphaville.bos.redhat.com> (Nick Dokos's message of "Mon, 25 Aug 2014 12:08:05 -0400") 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: Nick Dokos Cc: emacs-orgmode@gnu.org Hello, Nick Dokos writes: > I tried it with one of Thorsten Grotte's examples: Thanks for testing it out. > \documentclass{article} > > \begin{document} > > I tried to export this table to latex: > > \begin{comment} > > #+TBLNAME: Test > #+ORGTBL: SEND Test orgtbl-to-latex :skip 1 :splice t > | C | A | B | > |---+------+------| > | | 6 | 2 | > | | 4 | 9 | > |---+------+------| > | _ | suma | sumb | > | | 10 | 11 | > #+TBLFM: $suma=vsum(@I..@II)::$sumb=vsum(@I..@II) > \end{comment} > > > and got the following result: > > % BEGIN RECEIVE ORGTBL Test > 10 & 11\\ > % END RECEIVE ORGTBL Test > > \end{document} > > It works fine without the :skip argument, but with it, it seems to > skip to the second hline. Actually it looks fine to me. :skip is applied first, so table becomes |---+------+------| | | 6 | 2 | | | 4 | 9 | |---+------+------| | _ | suma | sumb | | | 10 | 11 | Then :splice is applied, so header (first rowgroup) is dropped | _ | suma | sumb | | | 10 | 11 | Eventually, this table is exported. The current implementation gives % BEGIN RECEIVE ORGTBL Test \hline 6 & 2 \\ 4 & 9 \\ \hline 10 & 11 \\ % END RECEIVE ORGTBL Test This doesn't match the specs, though. According to the (current) docstring :splice When set to t, return only table body lines, don't wrap them into :tstart and :tend. Default is nil. When :splice is non-nil, this also means that the exporter should not look for and interpret header and footer sections. So it should ignore table's header, but it isn't the case, as demonstrated in the following example. The same table with only :splice t as parameter gives % BEGIN RECEIVE ORGTBL Test C & A & B \\ \hline & 6 & 2 \\ & 4 & 9 \\ \hline $\backslash$\(_\) & suma & sumb \\ & 10 & 11 \\ % END RECEIVE ORGTBL Test I'm surprised no one noticed it. This may be a sign that this feature should be removed (i.e., :splice should not skip header). WDYT? Regards, -- Nicolas Goaziou