From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: exporting babel stuff to pdf or latex Date: Wed, 31 Aug 2011 16:03:46 -0600 Message-ID: <874o0xp7aw.fsf@gmail.com> References: <87aaapn11y.fsf@gmail.com> <14465.1314799828@alphaville.dokosmarshall.org> <87sjohkzp5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qyst3-0005JC-N8 for emacs-orgmode@gnu.org; Wed, 31 Aug 2011 18:03:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qyst2-0002D7-Es for emacs-orgmode@gnu.org; Wed, 31 Aug 2011 18:03:57 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:56623) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qyst2-0002Cv-9J for emacs-orgmode@gnu.org; Wed, 31 Aug 2011 18:03:56 -0400 Received: by gyg10 with SMTP id 10so1047107gyg.0 for ; Wed, 31 Aug 2011 15:03:55 -0700 (PDT) In-Reply-To: <87sjohkzp5.fsf@gmail.com> (Eythan Weg's message of "Wed, 31 Aug 2011 18:01:42 -0400") 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: Eythan Weg Cc: Nick Dokos , emacs-orgmode@gnu.org eythanweg@gmail.com (Eythan Weg) writes: > Nick Dokos > Wed, 31 Aug 2011 10:10:28 -0400 > > Eythan Weg wrote: > > > > > Hi, > > > > I need help with exporting this: > > > > #+begin_src R :exports both :results output > > Lst <- list(length=c(1,7,9), time=c(0.5,10,11)) > > print(Lst$time) > > #+end_src > > > > It fails with these messages > > > > Export buffer: > > Exporting to PDF... > > Exporting to LaTeX... > > org-babel-exp processing... > > org-babel-get-src-block-info: Args out of range: "", -1, 0 > > > > Any obvious reason why? > > > > > > Works for me: maybe you need to upgrade? > > Org-mode version 7.7 (release_7.7.223.gcae9.dirty) > > Nick > > Thanks. I think I found my issue. Babel blocks need to be under > a headline in order to be exported. Is this correct? > Only when exporting to LaTeX. The LaTeX exporter does weird things to parts of the Org-mode file before the first headline (which is everything in files with no headlines). Cheers -- Eric -- Eric Schulte http://cs.unm.edu/~eschulte/