From: Rustom Mody <rustompmody@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: orgmode tables for programmers (was table export to same buffer)
Date: Wed, 14 Aug 2013 17:20:22 +0530 [thread overview]
Message-ID: <CAJ+TeodHzQ0MB2wH4nhooQamG08G7X=Fo-_uvEkEv59V+8DgvA@mail.gmail.com> (raw)
In-Reply-To: <CAJ+TeodGJECojwt0E8wxCRXF7b9nu7MW24ux3L4b6mqUiLNWhg@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 418 bytes --]
On Wed, Aug 14, 2013 at 12:54 PM, Rustom Mody <rustompmody@gmail.com> wrote:
> I find it works in org 8 but not in 6.33 -- the default for emacs on
> debian.
> Is it easy to make it work for earlier org also??
>
>
Ok Ive managed to hack up something: The attached works in org 6.33 and
8.0.7
Just one small help needed:
How to split the very long line
#+ORGTBL SEND mytable...
into multiple lines??
Regards
Rusi
[-- Attachment #1.2: Type: text/html, Size: 894 bytes --]
[-- Attachment #2: orgtbl6.33.py --]
[-- Type: application/octet-stream, Size: 692 bytes --]
# -*- eval: (orgtbl-mode); -*-
srctable = """
#+ORGTBL: SEND mytable orgtbl-to-generic :skip 1 :skipcols (2 3) :fmt (1 "\t\"%s\" : ") (2 "%s") :lstart "\t" :lend ","
| parameter | numerator | denominator | value |
|-----------+-----------+-------------+----------|
| a | 3.0 | 3.0 | 1.00000 |
| b | 14.0 | 7.0 | 2.00000 |
| c | -2.0 | 15.0 | -0.13333 |
#+TBLFM: $4=$2/$3;f5
"""
# With point in above table, "C-u C-c C-c" will
# update formulae and install as python source-code
pytable = {
# BEGIN RECEIVE ORGTBL mytable
"a" : 1.00000
"b" : 2.00000
"c" : -0.13333
# END RECEIVE ORGTBL mytable
}
prev parent reply other threads:[~2013-08-14 11:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-14 7:24 orgmode tables for programmers (was table export to same buffer) Rustom Mody
2013-08-14 11:50 ` Rustom Mody [this message]
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='CAJ+TeodHzQ0MB2wH4nhooQamG08G7X=Fo-_uvEkEv59V+8DgvA@mail.gmail.com' \
--to=rustompmody@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).