[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Trying to use :post header argument to set #+ATTR_LATEX: line
From: |
L.C. Karssen |
Subject: |
Re: [O] Trying to use :post header argument to set #+ATTR_LATEX: line |
Date: |
Tue, 23 Oct 2018 22:12:12 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 |
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:
>
>
>> On Oct 22, 2018, at 7:43 AM, L.C. Karssen <address@hidden> 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 source
>> 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 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 be
> 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
>
--
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
L.C. Karssen
's-Hertogenbosch
The Netherlands
address@hidden
http://blog.karssen.org
GPG key ID: A88F554A
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
signature.asc
Description: OpenPGP digital signature