From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: radio tables in an org buffer Date: Fri, 25 Dec 2009 07:36:21 -1000 Message-ID: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============0625628743==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NOE5X-00062V-Ok for emacs-orgmode@gnu.org; Fri, 25 Dec 2009 12:36:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NOE5S-00060D-IE for emacs-orgmode@gnu.org; Fri, 25 Dec 2009 12:36:31 -0500 Received: from [199.232.76.173] (port=43859 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NOE5S-000606-ET for emacs-orgmode@gnu.org; Fri, 25 Dec 2009 12:36:26 -0500 Received: from outbound-mail-107.bluehost.com ([69.89.22.7]:51721) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NOE5R-0005Jm-To for emacs-orgmode@gnu.org; Fri, 25 Dec 2009 12:36:26 -0500 Received: from cpe-24-161-159-72.hawaii.res.rr.com ([24.161.159.72] helo=[192.168.1.3]) by box472.bluehost.com with esmtpa (Exim 4.69) (envelope-from ) id 1NOE5P-0000OB-6c for emacs-orgmode@gnu.org; Fri, 25 Dec 2009 10:36:24 -0700 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode emacs-orgmode --===============0625628743== Content-Type: multipart/alternative; boundary=Apple-Mail-2--12460069 --Apple-Mail-2--12460069 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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 --Apple-Mail-2--12460069 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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=3D$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

=

= --Apple-Mail-2--12460069-- --===============0625628743== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0625628743==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: radio tables in an org buffer Date: Sat, 26 Dec 2009 11:43:37 +0100 Message-ID: <6B1460FD-6658-4B83-998C-D79FA47C6A9E@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NOU7g-0004d2-4X for emacs-orgmode@gnu.org; Sat, 26 Dec 2009 05:43:48 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NOU7b-0004cS-4V for emacs-orgmode@gnu.org; Sat, 26 Dec 2009 05:43:47 -0500 Received: from [199.232.76.173] (port=46932 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NOU7a-0004cP-Tb for emacs-orgmode@gnu.org; Sat, 26 Dec 2009 05:43:42 -0500 Received: from mail-fx0-f228.google.com ([209.85.220.228]:41988) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NOU7a-0006KP-Kv for emacs-orgmode@gnu.org; Sat, 26 Dec 2009 05:43:42 -0500 Received: by fxm28 with SMTP id 28so580521fxm.26 for ; Sat, 26 Dec 2009 02:43:41 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: radio tables in an org buffer Date: Sat, 26 Dec 2009 06:31:07 -1000 Message-ID: <68A85884-D585-4E00-84C9-4A392B53682D@tsdye.com> References: <6B1460FD-6658-4B83-998C-D79FA47C6A9E@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NOZY2-0000Kh-03 for emacs-orgmode@gnu.org; Sat, 26 Dec 2009 11:31:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NOZXw-0000DT-WE for emacs-orgmode@gnu.org; Sat, 26 Dec 2009 11:31:21 -0500 Received: from [199.232.76.173] (port=45811 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NOZXw-0000DF-SS for emacs-orgmode@gnu.org; Sat, 26 Dec 2009 11:31:16 -0500 Received: from outbound-mail-305.bluehost.com ([67.222.53.251]:37065) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NOZXw-0003b7-FK for emacs-orgmode@gnu.org; Sat, 26 Dec 2009 11:31:16 -0500 In-Reply-To: <6B1460FD-6658-4B83-998C-D79FA47C6A9E@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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