From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giovanni Ridolfi Subject: [BUGs?] TBLFM & export to LaTeX Date: Tue, 13 Jan 2009 16:04:38 +0000 (GMT) Message-ID: <129984.55509.qm@web28308.mail.ukl.yahoo.com> Reply-To: giovanni.ridolfi@yahoo.it Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LMll0-0007kL-4C for emacs-orgmode@gnu.org; Tue, 13 Jan 2009 11:04:46 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LMlky-0007hp-6Y for emacs-orgmode@gnu.org; Tue, 13 Jan 2009 11:04:45 -0500 Received: from [199.232.76.173] (port=49411 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LMlkx-0007hJ-LZ for emacs-orgmode@gnu.org; Tue, 13 Jan 2009 11:04:43 -0500 Received: from n6a.bullet.ukl.yahoo.com ([217.146.183.154]:29225) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LMlkv-0000yn-Mp for emacs-orgmode@gnu.org; Tue, 13 Jan 2009 11:04:42 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, everyone, I have a problem with=20 1. formulas in table and 2. LaTeX export of tables Org-mode version 6.17c GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-09-06 on SOFT-MJASON Win XP ---------Hydrogen.org---------- -*- mode: org; -*- * TBLFM: references and columns I do not consider the "first" column with # and I assume that "1st \n Temp" is the first column | | 1st | | 3rd | 4th | | 6th | | | Temp | Temp | EXPNS | $\alpha$ | $\alpha_{c}$ | Calcd EXPNS | | | | (K) | | | x1e6 | x1e6 | |---+------+--------+--------+----------+--------------+-------------| | / | < | | | > | < | > | | ! | | T | | | c_a | c_expn | | # | 20 | 293 | 0 | 4.78e-6 | 4.78 | 0 | | # | | 294 | | | | | | # | 27 | 300 | 34e-6 | 4.82e-6 | 4.82 | 34 | | # | | 303 | | | | | | # | | 313 | | | | | | # | 47 | 320 | 131e-6 | 4.91e-6 | 4.91 | 131 | | # | | 323 | | | | 146 | | # | | 333 | | | | 195 | | # | 67 | 340 | 230 | 4.99e-6 | 4.99 | 230 | |---+------+--------+--------+----------+--------------+-------------| | $ | | T0=3D293 | | | | | #+TBLFM: $2=3D$T-273.15;%.0f::$c_a=3D0.8651+2.3569e-2*$3-4.2277e-5($3^2)+2.= 5408e-8*($3^3);%.2f::$c_expn=3D0.8651*($3-T0)+2.3569e-2*0.5*($3^2-T0^2)-4.2= 277e-5*0.3333333333*($3^3-T0^3)+2.5408e-8*0.25*($3^4-T0^4);%.0f If I C-c on the TBLFM only the first formula is applied:=20 $2=3D$T-273.15;%.0f The other columns remain the same. Perhaps the numbering is wrong and I should also consider=20 the column with #, but it worked with version org-6.15d On the other hand if I C-c on the TBLFM of the following=20 table it /works/. The formula is different in some ways: 1. columns are referred to with numbers and not names 2. T0 is substituted by its value (and not used as a parameter) 3. the numbering of columns considers the column with #s as the first column =20 $1 =20 | | $2 | | | $5 | | $7 | | | Temp | Temp | EXPNS | $\alpha$ | $\alpha_{c}$ | Calcd EXPNS | | | | (K) | | 4 | x1e6 | x1e6 | |----+------+--------+--------+----------+--------------+-------------| | / | < | | | > | < | > | | ! | | T | | | c_a | c_expn | | # | 20 | 293 | 0 | 4.78e-6 | 4.78 | 0 | | # | | 294 | | | | | | # | 27 | 300 | 34e-6 | 4.82e-6 | 4.82 | 34 | | # | | 303 | | | | | | # | | 313 | | | | | | # | 47 | 320 | 131e-6 | 4.91e-6 | 4.91 | 131 | | # | | 323 | | | | | | # | | 333 | | | | | | # | 67 | 340 | 230 | 4.99e-6 | 4.99 | 230 | |----+------+--------+--------+----------+--------------+-------------| | $ | | T0=3D293 | | | | | #+TBLFM:$2=3D$3-273.15;%.0f::$6=3D0.8651+2.3569e-2*$3-4.2277e-5($3^2)+2.540= 8e-8*($3^3);%.2f::$7=3D0.8651*($3-293)+2.3569e-2*0.5*($3^2-293^2)-4.2277e-5= *0.3333333333*($3^3-293^3)+2.5408e-8*0.25*($3^4-293^4);%.0f * LaTeX export of columns with # The previous columns are exported to a LaTeX file with=20 the column with #s, whereas this column does not appear=20 in the HTML export. I think this is a bug. -------------------------------------------- cheers, Giovanni =0A=0A=0A