all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [babel] fig2 error, An Babel Demo
@ 2010-10-25 10:28 G. Papadopoulos
  0 siblings, 0 replies; only message in thread
From: G. Papadopoulos @ 2010-10-25 10:28 UTC (permalink / raw)
  To: emacs-orgmode

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-10-25 10:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-25 10:28 [babel] fig2 error, An Babel Demo G. Papadopoulos

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.