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 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 -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-