From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Hannon Subject: Re: How to apply multiple TBLFM rules? Date: Mon, 7 May 2012 18:41:53 -0700 (PDT) Message-ID: <1336441313.68664.YahooMailNeo@web161906.mail.bf1.yahoo.com> References: <1336428054.18057.YahooMailNeo@web161903.mail.bf1.yahoo.com> <4FA8705A.4060907@verizon.net> Reply-To: Michael Hannon Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRZR8-0002fF-8d for emacs-orgmode@gnu.org; Mon, 07 May 2012 21:41:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SRZR6-0000D5-9D for emacs-orgmode@gnu.org; Mon, 07 May 2012 21:41:57 -0400 Received: from nm13.bullet.mail.bf1.yahoo.com ([98.139.212.172]:48552) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SRZR5-0000CB-Me for emacs-orgmode@gnu.org; Mon, 07 May 2012 21:41:55 -0400 In-Reply-To: <4FA8705A.4060907@verizon.net> 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: Charles , "emacs-orgmode@gnu.org" Charles wrote:=0A=0A> I'm fairly new to Org and did a= n experiment. Perhaps only one #+TBLFM: per=0A> table is allowed since the = plural is used=0A.=0A.=0A.=0A=0AThanks, Charlie.=A0 I think you must be cor= rect.=A0 Since posting my message, I've=0Arun across the notion of using " = C-c ' " within a table to edit formulas.=A0 When=0AI do that and add both o= f the formulas in my little example, I get:=0A=0A=A0=A0=A0 #+TBLFM: @1$3=3D= '(+ 10 7)::@2$3=3D'(+ 11 9)::@3$1=3D42=0A=0Awhen I return from the editor.= =A0 I.e., the two formulas are in a single line,=0Aseparated by a double co= lon, and both formulas get correctly evaluated when I=0Ado C-u C-c C-c.=A0 = This is even though I added them as one formula per line in=0Athe editor.= =0A=0AThe background here is that I was trying to understand the appended t= able,=0Ataken from:=0A=0A=A0=A0=A0 http://www.jstatsoft.org/v46/i03=0A=0Awh= ich seems to use repeated TBLFM lines.=A0 I beat my head against this for a= =0Agood long time this afternoon.=A0 It just doesn't work on my system, but= I'm=0Aalso new enough to this stuff that my first (and reasonable) assumpt= ion is=0Athat I'm doing something wrong (which may still be the case here, = for that=0Amatter).=0A=0A-- Mike=0A=0A=0A=0A#+results: pascals-triangle=0A|= 0 | 1=A0=A0=A0 | 2=A0=A0=A0 | 3=A0=A0=A0 | 4=A0=A0=A0 | 5=A0=A0=A0 |=0A|--= -+------+------+------+------+------|=0A|=A0=A0 | pass | pass | pass | pass= | pass |=0A| 1 |=A0=A0=A0=A0=A0 |=A0=A0=A0=A0=A0 |=A0=A0=A0=A0=A0 |=A0=A0= =A0=A0=A0 |=A0=A0=A0=A0=A0 |=0A| 1 | 1=A0=A0=A0 |=A0=A0=A0=A0=A0 |=A0=A0=A0= =A0=A0 |=A0=A0=A0=A0=A0 |=A0=A0=A0=A0=A0 |=0A| 1 | 2=A0=A0=A0 | 1=A0=A0=A0 = |=A0=A0=A0=A0=A0 |=A0=A0=A0=A0=A0 |=A0=A0=A0=A0=A0 |=0A| 1 | 3=A0=A0=A0 | 3= =A0=A0=A0 | 1=A0=A0=A0 |=A0=A0=A0=A0=A0 |=A0=A0=A0=A0=A0 |=0A| 1 | 4=A0=A0= =A0 | 6=A0=A0=A0 | 4=A0=A0=A0 | 1=A0=A0=A0 |=A0=A0=A0=A0=A0 |=0A| 1 | 5=A0= =A0=A0 | 10=A0=A0 | 10=A0=A0 | 5=A0=A0=A0 | 1=A0=A0=A0 |=0A#+TBLFM: @2$2=3D= '(sbe pst-check (row @3$1) (n @1$3))=0A#+TBLFM: @2$3=3D'(sbe pst-check (row= @4$1..@4$2) (n @1$4))=0A#+TBLFM: @2$4=3D'(sbe pst-check (row @5$1..@5$2) (= n @1$5))=0A#+TBLFM: @2$4=3D'(sbe pst-check (row @6$1..@6$2) (n @1$6))=0A#+T= BLFM: @2$4=3D'(sbe pst-check (row @7$1..@7$2) (n @1$7))