From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yu Subject: [BUG]? Constant-definition-lines in tables get exported. Date: Fri, 17 Feb 2012 13:13:16 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec52be6cb618d3904b927e0bb Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyMhF-0006j7-Ty for emacs-orgmode@gnu.org; Fri, 17 Feb 2012 07:13:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RyMhA-0006sB-9k for emacs-orgmode@gnu.org; Fri, 17 Feb 2012 07:13:53 -0500 Received: from mailout-de.gmx.net ([213.165.64.23]:46746) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RyMhA-0006s5-1G for emacs-orgmode@gnu.org; Fri, 17 Feb 2012 07:13:48 -0500 Received: by eaag11 with SMTP id g11so1423498eaa.0 for ; Fri, 17 Feb 2012 04:13:46 -0800 (PST) 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: org-mode mailing list --bcaec52be6cb618d3904b927e0bb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello! org-mode tables currently allow defining table-local constants in lines marked with "$" (as described in the "Tables > Advanced Features" section of the manual). However, when exporting (to LaTeX), these lines are included in the output -- and a cannot find a possibility to re-exclude them. Using #+CONSTANTS: is no adequate replacement, as the table-local constants help to avoid accidentially defining a constant twice, maybe with different values. Also the local character allows to use shorter names, which are better understandable in the context, but maybe not at all outside. An example table from my work: | | site | N | E/N[eV] | E_surf[meV/A=C2=B2] | |---+--------------------+----+------------+----------------| | * | on-top-1 | 32 | -7.2062959 | 138.89 | | * | bridge-2 | 32 | -7.2063544 | 138.85 | | * | bridge-3 | 32 | -7.2064131 | 138.81 | | $ | e_bulk=3D-8.30623 | | | | | $ | e_bulk_zn=3D-1.26671 | | | | | $ | A_int=3D25.34335655 | | | | #+TBLFM: $5=3D1000*($4*$3-($3-4)*$e_bulk-4*$e_bulk_zn)/(2*$A_int);%.2f My org-mode is a yesterday's pull from the git-repository. kind regards, Yu --bcaec52be6cb618d3904b927e0bb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello!

org-mode tables currently allow defining table-local constant= s in lines marked with "$" (as described in the "Tables >= Advanced Features" section of the manual).

However, when expo= rting (to LaTeX), these lines are included in the output -- and a cannot fi= nd a possibility to re-exclude them.

Using #+CONSTANTS: is no adequate replacement, as the table-local const= ants help to avoid accidentially defining a constant twice, maybe with diff= erent values. Also the local character allows to use shorter names, which a= re better understandable in the context, but maybe not at all outside.


An example table from my work:

| =C2=A0 | site =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 | =C2=A0N | =C2=A0 =C2=A0E/N[eV] | E_surf[meV/A=C2=B2] |<= br style=3D"font-family:courier new,monospace">|---+--------------------+----+------------+---------= -------|
| * | on-top-1 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 | 32 | -7.2062959 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 13= 8.89 |
| * | bridge-2 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 | 32 | -7.2063544 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 138.85 |<= br style=3D"font-family:courier new,monospace"> | * | bridge-3 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 | 32 | -7.2064131 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 13= 8.81 |
| $ | e_bulk=3D-8.30623 =C2=A0 =C2=A0| = =C2=A0 =C2=A0| =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
| $ | e_bulk_zn=3D-1.2667= 1 | =C2=A0 =C2=A0| =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
| = $ | A_int=3D25.34335655 =C2=A0| =C2=A0 =C2=A0| =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0| =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
#+TBLFM: $5=3D1000*($4*$3-($3-4)*$e_bulk-4*= $e_bulk_zn)/(2*$A_int);%.2f

My org-mode is a yesterday's = pull from the git-repository.

kind regards, Yu
--bcaec52be6cb618d3904b927e0bb--