From mboxrd@z Thu Jan 1 00:00:00 1970 From: "G. Papadopoulos" Subject: [babel] fig2 error, An Babel Demo Date: Mon, 25 Oct 2010 03:28:09 -0700 Message-ID: <2AABD066-66AD-41A2-82E9-6AF8FFB2B293@gmail.com> Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=46550 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PAKHm-000407-Sq for emacs-orgmode@gnu.org; Mon, 25 Oct 2010 06:28:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PAKHl-0005wo-Gx for emacs-orgmode@gnu.org; Mon, 25 Oct 2010 06:28:15 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]:38778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PAKHl-0005wk-9g for emacs-orgmode@gnu.org; Mon, 25 Oct 2010 06:28:13 -0400 Received: by pvc21 with SMTP id 21so1014658pvc.0 for ; Mon, 25 Oct 2010 03:28:11 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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> =3D=3D> 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=3D10) #+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.=