From: "G. Papadopoulos" <papadopoulos.gs@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [babel] fig2 error, An Babel Demo
Date: Mon, 25 Oct 2010 03:28:09 -0700 [thread overview]
Message-ID: <2AABD066-66AD-41A2-82E9-6AF8FFB2B293@gmail.com> (raw)
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 other threads:[~2010-10-25 10:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2AABD066-66AD-41A2-82E9-6AF8FFB2B293@gmail.com \
--to=papadopoulos.gs@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.