From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: feature request: exporting TBLFM line, formatted or not Date: Mon, 11 Apr 2016 09:22:39 -0400 Message-ID: <87zit0fffk.fsf@pierrot.dokosmarshall.org> References: <87mvp0nwbk.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apbno-0001ed-Hp for emacs-orgmode@gnu.org; Mon, 11 Apr 2016 09:22:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1apbnl-0003Ch-S6 for emacs-orgmode@gnu.org; Mon, 11 Apr 2016 09:22:52 -0400 Received: from plane.gmane.org ([80.91.229.3]:32769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apbnl-0003Cd-Kp for emacs-orgmode@gnu.org; Mon, 11 Apr 2016 09:22:49 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1apbnj-0003F4-9E for emacs-orgmode@gnu.org; Mon, 11 Apr 2016 15:22:47 +0200 Received: from pool-74-104-149-70.bstnma.fios.verizon.net ([74.104.149.70]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Apr 2016 15:22:47 +0200 Received: from ndokos by pool-74-104-149-70.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Apr 2016 15:22:47 +0200 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" To: emacs-orgmode@gnu.org Eric S Fraga writes: > Hello, > > For pedagogical reasons, it would be nice to be able, in some case, to > export a table (to LaTeX typically) with annotations (i.e. column and > row labels) and, more importantly, the equations used to populate the > table. Is this possible somehow? > > Obviously, for the row/column labelling, I could simply add an extra > column and row with those labels... > > For the TBLFM aspect, thinking aloud but with no real knowledge, would > it be possible to create a filter, say, that maybe copies and transforms > a TBLFM line before being thrown away by the export engine? > > Any suggestions welcome. > Bastien's table formulas tutorial does it this way: --8<---------------cut here---------------start------------->8--- * Column formulas and field formulas Ok, so now we have this table: : | Student | Maths | Physics | Mean | : |----------+-------+---------+------| : | Bertrand | 13 | 09 | 11 | : | Henri | 15 | 14 | | : | Arnold | 17 | 13 | | : #+TBLFM: @2$4=vmean($2..$3) --8<---------------cut here---------------end--------------->8--- Will that work for you? -- Nick