From mboxrd@z Thu Jan 1 00:00:00 1970 From: "L.C. Karssen" Subject: Re: Trying to use :post header argument to set #+ATTR_LATEX: line Date: Tue, 23 Oct 2018 22:12:12 +0200 Message-ID: <0f9dc196-b79e-7e7d-79ec-1e770e60ada3@karssen.org> References: <3f496b8f-3ffb-af0d-278a-21669e4e0aca@karssen.org> <92E9F8B7-30C6-4584-816F-8EF2B8D433B7@ucsd.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ulzFSYml5qrU3vW5tU2yj8q24ZB0CJAAN" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gF32h-0006vm-5a for emacs-orgmode@gnu.org; Tue, 23 Oct 2018 16:12:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gF32c-0000yv-7I for emacs-orgmode@gnu.org; Tue, 23 Oct 2018 16:12:43 -0400 Received: from lb1-smtp-cloud7.xs4all.net ([194.109.24.24]:56572) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gF32W-0000nI-R2 for emacs-orgmode@gnu.org; Tue, 23 Oct 2018 16:12:36 -0400 In-Reply-To: <92E9F8B7-30C6-4584-816F-8EF2B8D433B7@ucsd.edu> 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" To: "Berry, Charles" Cc: Org Mode This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --ulzFSYml5qrU3vW5tU2yj8q24ZB0CJAAN Content-Type: multipart/mixed; boundary="oQzOgqNQtIab30HfHIWx7MfoouqkUq1vH"; protected-headers="v1" From: "L.C. Karssen" To: "Berry, Charles" Cc: Org Mode Message-ID: <0f9dc196-b79e-7e7d-79ec-1e770e60ada3@karssen.org> Subject: Re: Trying to use :post header argument to set #+ATTR_LATEX: line References: <3f496b8f-3ffb-af0d-278a-21669e4e0aca@karssen.org> <92E9F8B7-30C6-4584-816F-8EF2B8D433B7@ucsd.edu> In-Reply-To: <92E9F8B7-30C6-4584-816F-8EF2B8D433B7@ucsd.edu> --oQzOgqNQtIab30HfHIWx7MfoouqkUq1vH Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable Dear Chuck, Thanks for suggesting xtables. I have used it in the past, but had more or less forgotten about it. I'll give it a try again. Best regards, Lennart. On 22-10-18 18:42, Berry, Charles wrote: >=20 >=20 >> On Oct 22, 2018, at 7:43 AM, L.C. Karssen wrote:= >> >> Dear list, >> >> I'd like to create several tables from R and export those to a LaTeX >> document. Because only input variable differs for the R code that >> generates the tables, I thought I could use the :post header argument = to >> add the #+ATTR_LATEX: line I need to each of the outputs of my R sourc= e >> code blocks. >> >> I tried to follow the Org manual (section 14.8.2.27), but that doesn't= >> seem to work. My R results blocks all get colons in front of the outpu= t >> and if I set :results drawer, I get the following error: >=20 > I do not doubt that this is possible with enough tooling. I think it wi= ll be easier with the xtable R package. >=20 > But for issues like this I usually find it easier to export the documen= t to *.Rmd (R markdown) or *.Rnw (knitr) and render from there. >=20 > See https://github.com/chasberry/orgmode-accessories for some examples.= >=20 >=20 > HTH, >=20 > Chuck >=20 --=20 *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* L.C. Karssen 's-Hertogenbosch The Netherlands lennart@karssen.org http://blog.karssen.org GPG key ID: A88F554A -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- --oQzOgqNQtIab30HfHIWx7MfoouqkUq1vH-- --ulzFSYml5qrU3vW5tU2yj8q24ZB0CJAAN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQQyBENSov4Y8H9uObIgAxQL2pzVCQUCW8+AoAAKCRAgAxQL2pzV CfRKAP97/NAOrrIWEAkv/ZA0zcdedhm1OJiE5wu5K0aqvGgpaQD+IBFL6zuUKVxV hn3j/0GlgTjmuY3pJ7xjBck9TlUVAgE= =lawo -----END PGP SIGNATURE----- --ulzFSYml5qrU3vW5tU2yj8q24ZB0CJAAN--