emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Berry, Charles" <ccberry@ucsd.edu>
To: "L.C. Karssen" <lennart@karssen.org>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Trying to use :post header argument to set #+ATTR_LATEX: line
Date: Mon, 22 Oct 2018 16:42:38 +0000	[thread overview]
Message-ID: <92E9F8B7-30C6-4584-816F-8EF2B8D433B7@ucsd.edu> (raw)
In-Reply-To: <3f496b8f-3ffb-af0d-278a-21669e4e0aca@karssen.org>



> 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

  reply	other threads:[~2018-10-22 16:42 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 [this message]
2018-10-23 20:12   ` L.C. Karssen

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=92E9F8B7-30C6-4584-816F-8EF2B8D433B7@ucsd.edu \
    --to=ccberry@ucsd.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=lennart@karssen.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).