From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vikas Rawal Subject: Re: orgmod: R and threeparttable Date: Sun, 15 Dec 2013 11:21:31 +0100 Message-ID: References: <87sitvakg6.fsf@gmail.com> <87ob4jae2y.fsf@gmail.com> <87bo0ia10v.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0149ce361b258d04ed900f3f Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vs8pO-0001qe-5a for emacs-orgmode@gnu.org; Sun, 15 Dec 2013 05:21:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vs8pI-0004i5-6b for emacs-orgmode@gnu.org; Sun, 15 Dec 2013 05:21:38 -0500 Received: from mail-ob0-f169.google.com ([209.85.214.169]:65533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vs8pH-0004hz-W9 for emacs-orgmode@gnu.org; Sun, 15 Dec 2013 05:21:32 -0500 Received: by mail-ob0-f169.google.com with SMTP id wm4so3707719obc.28 for ; Sun, 15 Dec 2013 02:21:31 -0800 (PST) In-Reply-To: <87bo0ia10v.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: "emacs-orgmode@gnu.org" --089e0149ce361b258d04ed900f3f Content-Type: text/plain; charset=ISO-8859-1 > > Try this: > > #+name: gharsondi-yield > #+caption: Average yields of selected crops in Gharsondi, Gwalior, > Madhya Pradesh and India, 2007-08 (kilograms per acre) > #+attr_latex: :options [htb] > #+begin_table > #+begin_threeparttable > Thanks Nicolas. I need #+attr_latex to come after #begin_threeparttable. Otherwise, it is not used. The following works: #+NAME: gharsondi-yield #+CAPTION: Average yields of selected crops in Gharsondi, Gwalior, Madhya Pradesh and India, 2007-08 (kilograms per acre) #+begin_table #+begin_threeparttable #+attr_latex: :environment tabularx :width \textwidth :align lrrrr #+RESULTS: gharsondi-yield-in | Crop | Gharsondi | Gwalior | Madhya Pradesh | India | |-----------+-----------+---------+----------------+-------| | Soybean | nil | 689 | 442 | 500 | | Paddy | 1553 | 866 | 569 | 1337 | | Urad | 53 | 142 | 142 | 192 | | Sesame | 101 | 127 | 153 | 170 | | Wheat | 824 | 664 | 652 | 1134 | | Chick pea | 462 | 445 | 288 | 308 | | Rapeseed | 501 | 280 | 375 | 405 | #+begin_tablenotes \footnotesize Source: Data for Gwalior, Madhya Pradesh and India taken from the website Directorate of Economics and Statistics, Ministry of Agriculture, Government of India. Yield of rice were converted to paddy equivalents. #+end_tablenotes #+end_threeparttable #+end_table Vikas --089e0149ce361b258d04ed900f3f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

=

Try this:

=A0 #+name: gharsondi-yield
=A0 #+caption: Average yields of selected crops in Gharsondi, Gwalior, Madh= ya Pradesh and India, 2007-08 (kilograms per acre)
=A0 #+attr_latex: :options [htb]
=A0 #+begin_table
=A0 #+begin_threeparttable

Thanks Nicol= as.

I need #+attr_latex to come after #begin= _threeparttable. Otherwise, it is not used.

The following works:

#+NAME: gharsondi-yield
#+CAPTION: Average yields of selected crops = in Gharsondi, Gwalior, Madhya Pradesh and India, 2007-08 (kilograms per acr= e)
#+begin_table
#+begin_threeparttable
#+attr_latex: :environment= tabularx :width \textwidth :align lrrrr
#+RESULTS: gharsondi-yield-in
| Crop=A0=A0=A0=A0=A0 | Gharsondi | Gwalio= r | Madhya Pradesh | India |
|-----------+-----------+---------+--------= --------+-------|
| Soybean=A0=A0 |=A0=A0=A0=A0=A0=A0 nil |=A0=A0=A0=A0 = 689 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 442 |=A0=A0 500 |
| Paddy=A0=A0=A0=A0 |=A0=A0=A0=A0=A0 1553 |=A0=A0=A0=A0 866 |=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 569 |=A0 1337 |
| Urad=A0=A0=A0=A0=A0 |=A0=A0=A0= =A0=A0=A0=A0 53 |=A0=A0=A0=A0 142 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 142 |= =A0=A0 192 |
| Sesame=A0=A0=A0 |=A0=A0=A0=A0=A0=A0 101 |=A0=A0=A0=A0 127= |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 153 |=A0=A0 170 |
| Wheat=A0=A0=A0= =A0 |=A0=A0=A0=A0=A0=A0 824 |=A0=A0=A0=A0 664 |=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 652 |=A0 1134 |
| Chick pea |=A0=A0=A0=A0=A0=A0 462 |=A0=A0=A0=A0 445 |=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 288 |=A0=A0 308 |
| Rapeseed=A0 |=A0=A0=A0=A0=A0=A0 501 = |=A0=A0=A0=A0 280 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 375 |=A0=A0 405 |
#= +begin_tablenotes
\footnotesize Source: Data for Gwalior, Madhya Pradesh= and
India taken from the website Directorate of Economics and Statistic= s,
Ministry of Agriculture, Government of India. Yield of rice were
convert= ed to paddy equivalents.
#+end_tablenotes
#+end_threeparttable
#+e= nd_table


Vikas
--089e0149ce361b258d04ed900f3f--