emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "L.C. Karssen" <lennart@karssen.org>
To: "Berry, Charles" <ccberry@ucsd.edu>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Trying to use :post header argument to set #+ATTR_LATEX: line
Date: Tue, 23 Oct 2018 22:12:12 +0200	[thread overview]
Message-ID: <0f9dc196-b79e-7e7d-79ec-1e770e60ada3@karssen.org> (raw)
In-Reply-To: <92E9F8B7-30C6-4584-816F-8EF2B8D433B7@ucsd.edu>


[-- Attachment #1.1: Type: text/plain, Size: 1455 bytes --]

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 <lennart@karssen.org> 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

lennart@karssen.org
http://blog.karssen.org
GPG key ID: A88F554A
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

      reply	other threads:[~2018-10-23 20:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-22 14:43 Trying to use :post header argument to set #+ATTR_LATEX: line L.C. Karssen
2018-10-22 16:42 ` Berry, Charles
2018-10-23 20:12   ` L.C. Karssen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0f9dc196-b79e-7e7d-79ec-1e770e60ada3@karssen.org \
    --to=lennart@karssen.org \
    --cc=ccberry@ucsd.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).