emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: maxco.tr@gmail.com
To: emacs-orgmode@gnu.org
Subject: new exporter and plain text table export alignment
Date: Tue, 09 Apr 2013 07:51:49 -0400	[thread overview]
Message-ID: <874nffly5m.fsf@maxcoconstruction.com> (raw)

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

             reply	other threads:[~2013-04-09 11:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-09 11:51 maxco.tr [this message]
2013-04-09 13:41 ` new exporter and plain text table export alignment Nicolas Goaziou
2013-04-09 14:06   ` Maxco.tr
2013-04-09 14:58     ` Maxco.tr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874nffly5m.fsf@maxcoconstruction.com \
    --to=maxco.tr@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).