emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] exporting babel stuff to pdf or latex


From: Eric Schulte
Subject: Re: [O] exporting babel stuff to pdf or latex
Date: Wed, 31 Aug 2011 16:03:46 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

address@hidden (Eythan Weg) writes:

> Nick Dokos <address@hidden>
> Wed, 31 Aug 2011 10:10:28 -0400
>
>    Eythan Weg <address@hidden> 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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]