From: Miguel Ruiz <rbenit68@yahoo.es>
To: emacs-orgmode@gnu.org
Subject: Cannot get exported a correctly-recalculated table generated by org-babel
Date: Sun, 27 Jan 2013 14:57:03 +0000 (GMT) [thread overview]
Message-ID: <1359298623.3072.YahooMailClassic@web133103.mail.ir2.yahoo.com> (raw)
Problem: I cannot get exported a correctly-recalculated table generated by org-babel.
Hi,
0. Windoze 7 x64, Emacs 24.pre3 r111199, Org-mode 7.9.3d (commit 08f5b0ad)
(I cannot show the results with Emacs 24.1release or Emacs 24.2release because of the Windoze heap bug#13065
http://emacs.1067599.n5.nabble.com/bug-13065-Bug-in-x-file-dialog-with-GetOpenFileName-td271410.html)
1. Load:
# start-of-org-file
#+name: table1
| C1 | C2 | C3 |
|----+----+----|
| A | 1 | 1 |
| B | 2 | 2 |
| C | 3 | 3 |
#+name: table2
| C1 | C4 | C5 |
|----+----+----|
| A | 1 | 1 |
| B | 2 | 2 |
| C | 3 | 3 |
#+call: table-operations-combine-merge(table1,table2) :colnames yes
#+tblfm: $6=$5+$4+$3+$2
# end-of-org-file
2. M-: (require 'cl) RET
3. M-: (org-babel-lob-ingest 'path/to/lob-table-operations.org') RET
4. M-x org-babel-execute-buffer RET yes RET yes RET
5. M-x org-table-recalculate-buffer-tables RET
Results: tables merged and new column calculated correctly.
------
Now let's export the file:
6. M-x org-export RET b yes RET yes RET
Results: tables merged correctly and new column empty
I presume that org-export re-execute babel but does not recalculate tables.
How can I get recalculated tables through org-export:
a) Switch-off org-babel-execute-buffer in org-export?
b) Switch-on org-tables recalculate-buffer-tables AFTER org-babel-execute-buffer?
I cannot figure out the sequence in org-export or the multiple hooks available.
Thanks for this wonderful piece of software.
Miguel Ruiz.
Sevilla, Spain.
next reply other threads:[~2013-01-27 14:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-27 14:57 Miguel Ruiz [this message]
2013-01-30 10:24 ` Cannot get exported a correctly-recalculated table generated by org-babel Bastien
2013-01-30 12:11 ` Miguel Ruiz
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=1359298623.3072.YahooMailClassic@web133103.mail.ir2.yahoo.com \
--to=rbenit68@yahoo.es \
--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).