From: Jean Louis <bugs@gnu.support>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: How to align all tables at once?
Date: Thu, 3 Nov 2022 11:19:43 +0300 [thread overview]
Message-ID: <Y2N5nw8rRjaT3WOt@protected.localdomain> (raw)
I am using Org mode for presentation and would like to use it's tables
for presentation only.
In particular I need the function org-table-align to align the table
in presentation mode.
The Org buffer is updated with results of the below embedded
functions. I can't use Org mode directly as many various expenses are
connected to together.
If it is possible to "jump backwards to Org table" and invoke
org-table-align, I could do that with subsequent function, is it?
This is what is being processed:
------------- snippet
⟦ (ignore (setq my-total 0)) ⟧
⟦ (ignore (defun my-add (n) (setq my-total (+ my-total n)) n)) ⟧
** Monthly Expenses
| Description | Value |
|------------------------------------------+----------------------|
| Communications and Reporting Officer I/C | ⟦ (my-add 600000) ⟧ |
| Prospecting Staff member | ⟦ (my-add 450000) ⟧ |
| Prospecting Staff member | ⟦ (my-add 450000) ⟧ |
| Food for workers on project | ⟦ (my-add 900000) ⟧ |
| Transport Expenses | ⟦ (my-add 1000000) ⟧ |
| Rental | ⟦ (my-add 300000) ⟧ |
|------------------------------------------+----------------------|
| TOTAL | ⟦ my-total ⟧ |
------------- snippet
This is what I get in presentation:
| Description | Value |
|------------------------------------------+----------------------|
| Communications and Reporting Officer I/C | 600000 |
| Prospecting Staff member | 450000 |
| Prospecting Staff member | 450000 |
| Food for workers on project | 900000 |
| Transport Expenses | 1000000 |
| Rental | 300000 |
|------------------------------------------+----------------------|
| TOTAL | 3700000 |
other solution could be to iterate over Org tables to align them.
Anything that exists currently?
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
next reply other threads:[~2022-11-03 8:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-03 8:19 Jean Louis [this message]
2022-11-04 4:50 ` How to align all tables at once? Ihor Radchenko
2022-11-04 5:49 ` Jean Louis
2022-11-04 8:52 ` Ihor Radchenko
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=Y2N5nw8rRjaT3WOt@protected.localdomain \
--to=bugs@gnu.support \
--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).