emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG]? Constant-definition-lines in tables get exported.
@ 2012-02-17 12:13 Yu
  2012-02-22  8:36 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Yu @ 2012-02-17 12:13 UTC (permalink / raw)
  To: org-mode mailing list

[-- Attachment #1: Type: text/plain, Size: 1302 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2377 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [BUG]? Constant-definition-lines in tables get exported.
  2012-02-17 12:13 [BUG]? Constant-definition-lines in tables get exported Yu
@ 2012-02-22  8:36 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2012-02-22  8:36 UTC (permalink / raw)
  To: Yu; +Cc: org-mode mailing list

Hello,

Yu <yu_icq@gmx.at> writes:

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

This should be fixed now.  Thank you for reporting this.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-22  8:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-17 12:13 [BUG]? Constant-definition-lines in tables get exported Yu
2012-02-22  8:36 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).