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²] |
|---+--------------------+----+------------+----------------|
| * | on-top-1           | 32 | -7.2062959 |         138.89 |
| * | bridge-2           | 32 | -7.2063544 |         138.85 |
| * | bridge-3           | 32 | -7.2064131 |         138.81 |
| $ | e_bulk=-8.30623    |    |            |                |
| $ | e_bulk_zn=-1.26671 |    |            |                |
| $ | A_int=25.34335655  |    |            |                |
#+TBLFM: $5=1000*($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

Reply via email to