John Hendy <jw.he...@gmail.com> writes:

> I thought this was the proper syntax for printing stuff directly to a
> LaTeX document:
>
> #+begin_src R :session :exports results :results output :wrap org
>

I think you want either ":results latex" or ":wrap latex".

Cheers,

>
> I've got a statement interspersing some prose with variable values like so:
>
> cat("This and such value was," var1, ", and this one was", var2, ".\n")
>
> The results block looks fine, but LaTeX is spitting out \begin{org}
> and \end{org} around it, which results in a compilation error:
>
> ! LaTeX Error: Environment org undefined.
>
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...
>
> l.51 \begin{org}
>
>
> ! LaTeX Error: \begin{document} ended by \end{org}.
>
> Suggestions?
>
>
> Thanks,
> John
>

-- 
Eric Schulte
http://cs.unm.edu/~eschulte

Reply via email to