From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Berry, Charles" Subject: Re: Trying to use :post header argument to set #+ATTR_LATEX: line Date: Mon, 22 Oct 2018 16:42:38 +0000 Message-ID: <92E9F8B7-30C6-4584-816F-8EF2B8D433B7@ucsd.edu> References: <3f496b8f-3ffb-af0d-278a-21669e4e0aca@karssen.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35458) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gEdI6-0000aD-N5 for emacs-orgmode@gnu.org; Mon, 22 Oct 2018 12:42:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gEdI2-0004eG-Mm for emacs-orgmode@gnu.org; Mon, 22 Oct 2018 12:42:54 -0400 Received: from iport-acv5-out.ucsd.edu ([132.239.0.10]:56400) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1gEdI2-0004YD-Ah for emacs-orgmode@gnu.org; Mon, 22 Oct 2018 12:42:50 -0400 In-Reply-To: <3f496b8f-3ffb-af0d-278a-21669e4e0aca@karssen.org> Content-Language: en-US Content-ID: 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: "L.C. Karssen" Cc: Org Mode > On Oct 22, 2018, at 7:43 AM, L.C. Karssen wrote: >=20 > Dear list, >=20 > 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 source > code blocks. >=20 > 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 output > and if I set :results drawer, I get the following error: I do not doubt that this is possible with enough tooling. I think it will b= e easier with the xtable R package. But for issues like this I usually find it easier to export the document to= *.Rmd (R markdown) or *.Rnw (knitr) and render from there. See https://github.com/chasberry/orgmode-accessories for some examples. HTH, Chuck=