emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* new exporter and plain text table export alignment
@ 2013-04-09 11:51 maxco.tr
  2013-04-09 13:41 ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: maxco.tr @ 2013-04-09 11:51 UTC (permalink / raw)
  To: emacs-orgmode

Hi all

I use org tables to estimate construction projects.  I frequently use
simple math within a table cell to help me remember what I was
thinking when I entered the data.

It seems that the new exporter does not align plain text exports in
some of these situations.  I only use plain text and html exports;
html is working perfectly.

example tables and the results I see.

* table I - good
|         |         |    |       |
|---------+---------+----+-------|
| apples  |       3 |  8 |  24.0 |
| oranges | 1.2+2.8 |  9 |  36.0 |
| plums   |       5 | 10 |  50.0 |
|---------+---------+----+-------|
|         |         |    | 110.0 |
#+TBLFM: $4=$2*$3;%.1f::@5$4=vsum(@-I..@-II);%.1f

table I - good
=======
                             
  -----------------------------
   apples         3   8   24.0 
   oranges  1.2+2.8   9   36.0 
   plums          5  10   50.0 
  -----------------------------
                         110.0 

* table II
|         |             |    |       |
|---------+-------------+----+-------|
| apples  |           3 |  8 |  24.0 |
| oranges | 1.1+1.2+1.7 |  9 |  36.0 |
| plums   |           5 | 10 |  50.0 |
|---------+-------------+----+-------|
|         |             |    | 110.0 |
#+TBLFM: $4=$2*$3;%.1f::@5$4=vsum(@-I..@-II);%.1f

table II
========
                                 
  ---------------------------------
   apples   	  3          8   24.0 
   oranges  1.1+1.2+1.7   9   36.0 
   plums    	  5         10   50.0 
  ---------------------------------
                             110.0 

* table III
|        |                  |     |      |
|--------+------------------+-----+------|
| apples |                3 |   8 | 24.0 |
| are    |                4 |   9 | 36.0 |
| good   | 1.87995654654654 |  10 | 18.8 |
|--------+------------------+-----+------|
|        |                  |     | 78.8 |
#+TBLFM: $4=$2*$3;%.1f::@5$4=vsum(@-I..@-II);%.1f

table III
=========
                                    
  ------------------------------------
   apples  	       3          8  24.0 
   are     	       4          9  36.0 
   good    1.87995654654654  10  18.8 
  ------------------------------------
                                 78.8 

thanks
Tracy Helms

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

end of thread, other threads:[~2013-04-09 15:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-09 11:51 new exporter and plain text table export alignment maxco.tr
2013-04-09 13:41 ` Nicolas Goaziou
2013-04-09 14:06   ` Maxco.tr
2013-04-09 14:58     ` Maxco.tr

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).