From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Error with :wrap org in babel and 8.0-pre Date: Fri, 12 Apr 2013 16:24:34 -0600 Message-ID: <87li8ncqzq.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQmeQ-0001iB-9R for emacs-orgmode@gnu.org; Fri, 12 Apr 2013 18:40:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQmeN-0008Cm-MQ for emacs-orgmode@gnu.org; Fri, 12 Apr 2013 18:40:58 -0400 Received: from mail-da0-x22a.google.com ([2607:f8b0:400e:c00::22a]:47743) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQmeN-0008CS-GF for emacs-orgmode@gnu.org; Fri, 12 Apr 2013 18:40:55 -0400 Received: by mail-da0-f42.google.com with SMTP id n15so1311755dad.29 for ; Fri, 12 Apr 2013 15:40:54 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Hendy Cc: emacs-orgmode John Hendy 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 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