emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] [babel] fig2 error, An Babel Demo


From: G. Papadopoulos
Subject: [Orgmode] [babel] fig2 error, An Babel Demo
Date: Mon, 25 Oct 2010 03:28:09 -0700

Hello,

I am trying my hand at Org Babel as I am very excited about its potential. 
Particularly, I am interested in generating LaTeX (and HTML, XML, etc.) from an 
.org file which contains R code (and Python, SQL, etc.). Though I typically use 
Sweave for the purpose of incorporating R with LaTeX, the export and multiple 
language options with Org Mode intrigue me.

My problem occurs while using foo.org from:
http://orgmode.org/worg/org-contrib/babel/uses.php#foo


I am able to generate foo.tex, however it will not compile to PDF given:

!pdfTeX error: pdflatex (file ./fig2.pdf): PDF inclusion: required page does 
not exist <0>
 ==> Fatal error occurred, no output PDF file produced!


Looking further into this by running a prompt for every code block, I 
discovered that fig2.pdf is indeed generated correctly. However, before the 
completion of the export to foo.tex, file2.pdf is again changed rendering it 
unusable by LaTeX. This change occurs after line 171; that is, after figure two 
is generated, but before the next example in foo.org occurs:

#+begin_src R :exports none
  options(scipen=10)
#+end_src

Removing everything after line 171 results in a correct PDF (sans the remaining 
examples, naturally).  I cannot seem to pin it to one particular R chunk. I 
would like to generate the example PDF in its entirety. Any suggestions or 
thoughts?


Thank you,
G.


reply via email to

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