emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* radio tables in an org buffer
@ 2009-12-25 17:36 Thomas S. Dye
  2009-12-26 10:43 ` Carsten Dominik
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas S. Dye @ 2009-12-25 17:36 UTC (permalink / raw)
  To: org-mode emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1025 bytes --]

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,
Tom

Thomas S. Dye, Ph.D.
T. S. Dye & Colleagues, Archaeologists, Inc.
Phone: (808) 529-0866 Fax: (808) 529-0884
http://www.tsdye.com



[-- Attachment #1.2: Type: text/html, Size: 4297 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: radio tables in an org buffer
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Carsten Dominik @ 2009-12-26 10:43 UTC (permalink / raw)
  To: Thomas S. Dye; +Cc: org-mode emacs-orgmode


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

> Tom
>
> Thomas S. Dye, Ph.D.
> T. S. Dye & Colleagues, Archaeologists, Inc.
> Phone: (808) 529-0866 Fax: (808) 529-0884
> http://www.tsdye.com
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: radio tables in an org buffer
  2009-12-26 10:43 ` Carsten Dominik
@ 2009-12-26 16:31   ` Thomas S. Dye
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas S. Dye @ 2009-12-26 16:31 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: org-mode emacs-orgmode

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-12-26 16:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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

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).