emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Thomas S. Dye" <tsd@tsdye.com>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: org-mode emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: radio tables in an org buffer
Date: Sat, 26 Dec 2009 06:31:07 -1000	[thread overview]
Message-ID: <68A85884-D585-4E00-84C9-4A392B53682D@tsdye.com> (raw)
In-Reply-To: <6B1460FD-6658-4B83-998C-D79FA47C6A9E@gmail.com>

Hi Carsten,

On Dec 26, 2009, at 12:43 AM, Carsten Dominik wrote:

>
> On Dec 25, 2009, at 6:36 PM, Thomas S. Dye wrote:
>
>> Aloha all,
>>
>> Is it possible to use radio tables and lists inside an org buffer?
>>
>> I'm writing and tangling LaTeX with Org-babel and it would be  
>> useful to leverage the LaTeX export capabilities of Org-mode,  
>> especially with tabular material, which is tedious to format by  
>> hand in LaTeX.
>>
>> Here's what it would look like in the Org-mode buffer:
>>
>>> * Sales figures table
>>> #+source: salefigures
>>> #+begin_src latex
>>> % BEGIN RECEIVE ORGTBL salesfigures
>>> % END RECEIVE ORGTBL salesfigures
>>> #+end_src
>>>
>>>     #+ORGTBL: SEND salesfigures orgtbl-to-latex
>>>     | Month | Days | Nr sold | per day |
>>>     |-------+------+---------+---------|
>>>     | Jan   |   23 |      55 |     2.4 |
>>>     | Feb   |   21 |      16 |     0.8 |
>>>     | March |   22 |     278 |    12.6 |
>>>     #+TBLFM: $4=$3/$2;%.1f
>>>     % $ (optional extra dollar to keep font-lock happy, see  
>>> footnote)
>>
>> All the best,
>
> This looks as if it should work!
>
> - Carsten

And so it does!  The magic key, which most (all?) on the list probably  
understand already, is to call the function orgtbl-crtl-c-ctrl-c  
directly when the point is in the table.

All the best,
Tom

      reply	other threads:[~2009-12-26 16:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-25 17:36 radio tables in an org buffer Thomas S. Dye
2009-12-26 10:43 ` Carsten Dominik
2009-12-26 16:31   ` Thomas S. Dye [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=68A85884-D585-4E00-84C9-4A392B53682D@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=carsten.dominik@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).