From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Kiermeier Subject: =?UTF-8?B?UmU6IGhlYWRlciBhcmd1bWVudHMsIGluaGVyaXRhbmNlLCBhbmQg?= =?UTF-8?B?bm93ZWIgZXhwYW5zaW9uIFdhczogwqtNYWNyb8K7IGV4cGFuc2lvbiBpbiBz?= =?UTF-8?B?b3VyY2UgYmxvY2tzOyBjb2RlLXNoYXJpbmcgYmV0d2VlbiBibG9ja3M=?= Date: Sun, 21 Sep 2014 13:49:13 +0930 Message-ID: References: <87bnqdqb7i.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1139bb6667e8e605038ba5c4 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVYd0-0005es-TG for emacs-orgmode@gnu.org; Sun, 21 Sep 2014 00:20:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XVYcx-000390-Le for emacs-orgmode@gnu.org; Sun, 21 Sep 2014 00:20:02 -0400 Received: from mail-qa0-x229.google.com ([2607:f8b0:400d:c00::229]:50692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVYcx-00038h-EA for emacs-orgmode@gnu.org; Sun, 21 Sep 2014 00:19:59 -0400 Received: by mail-qa0-f41.google.com with SMTP id f12so4218382qad.0 for ; Sat, 20 Sep 2014 21:19:54 -0700 (PDT) In-Reply-To: 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: Charles Berry Cc: emacs-orgmode@gnu.org --001a1139bb6667e8e605038ba5c4 Content-Type: text/plain; charset=UTF-8 Thanks Chuck, I thought the same, especially since I found the tabular() function by looking at Hmisc and rms documentation (both packages by Frank Harrell). But as it turns out the latex method for objects of class tabular is defined in the table package and it has a much more limited set of options. The upside is that I found the additional functions margin.table and addmargins (I knew about prop.table) which are going to make my life easier with R's tables. Cheers, Andreas -- Dr Andreas Kiermeier | Director Statistical Process Improvement Consulting and Training Pty Ltd Mbl: +61 (4)23 028 565 | Email: andreas.kiermeier@gmail.com Australia On 21 September 2014 01:36, Charles Berry wrote: > Andreas Kiermeier gmail.com> writes: > > > > > On 19 September 2014 20:29, Rainer M Krug krugs.de> wrote:> > > [ snip ] > > > > > The alternative mentioned by Chuck Berry is the xtable function (in R) > > (https://lists.gnu.org/archive/html/emacs-orgmode/2014-09/msg00519.html > ). > > I just tried it and am happy to share that it does created the whole > > output in one go, i.e. it does exactly what I need, including table > > float, caption and label. Now I just got to sort out how to created the > > tables without the use of tabular ... > > > > I suggested xtable because that is what I often use. > > But thinking a bit more, I decided to look at tables::tabular() and > at Hmisc::latex(), which I think is what you used at first. > > And it turns out that latex() has args for caption, label, where, and > loads of other things. See its help page. So, it looks like you have the > control you need and the ability to use > > latex( tabular(...), caption = <...>, label = <...>, ...) > > to good effect. > > HTH, > > Chuck > > > --001a1139bb6667e8e605038ba5c4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks Chuck,
I thoug= ht the same, especially since I found the tabular() function by looking at = Hmisc and rms documentation (both packages by Frank Harrell).
But as it turns out the latex method for objects of class tabular i= s defined in the table package and it has a much more limited set of option= s.
The upside is that I found the additional functions= margin.table and addmargins (I knew about prop.table) which are going to m= ake my life easier with R's tables.
Cheers,
<= div class=3D"gmail_default" style=3D"font-family:trebuchet ms,sans-serif;fo= nt-size:small">Andreas

-- Dr Andreas Kiermeier | Director
Statistical Process Improvement Consulting and Training Pty Ltd
Mbl: +61 (4)23 028 565 | Email: andreas.kiermeier@gmail.com
Australia


On 21 September 2014 01:36, Charles Berry <c= cberry@ucsd.edu> wrote:
And= reas Kiermeier <andreas.kiermeier <at> gmail.com> writes:

>
> On 19 September 2014 20:29, Rainer M Krug <Rainer <at> krugs.de> wrote:>

[ snip ]

>
> The alternative mentioned by Chuck Berry is the xtable function (in R)=
> (https://lists.gnu.org/archive/html/emacs-or= gmode/2014-09/msg00519.html).
> I just tried it and am happy to share that it does created the whole > output in one go, i.e. it does exactly what I need, including table > float, caption and label. Now I just got to sort out how to created th= e
> tables without the use of tabular ...
>

I suggested xtable because that is what I often use.

But thinking a bit more, I decided to look at tables::tabular() and
at Hmisc::latex(), which I think is what you used at first.

And it turns out that latex() has args for caption, label, where, and
loads of other things. See its help page. So, it looks like you have the control you need and the ability to use

=C2=A0 latex( tabular(...), caption =3D <...>, label =3D <...>,= ...)

to good effect.

HTH,

Chuck



--001a1139bb6667e8e605038ba5c4--