From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Graphics in LaTeX pdf output. Date: Tue, 11 Sep 2012 11:25:17 -0500 Message-ID: References: <7DBDA1C7-A141-4EBA-BF5B-9070E8CB1A5A@univie.ac.at> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51470) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBTHE-0002RR-7D for emacs-orgmode@gnu.org; Tue, 11 Sep 2012 12:25:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TBTH4-000367-AM for emacs-orgmode@gnu.org; Tue, 11 Sep 2012 12:25:28 -0400 Received: from mail-qa0-f41.google.com ([209.85.216.41]:52578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBTH4-00034X-5G for emacs-orgmode@gnu.org; Tue, 11 Sep 2012 12:25:18 -0400 Received: by qafk30 with SMTP id k30so1937692qaf.0 for ; Tue, 11 Sep 2012 09:25:17 -0700 (PDT) In-Reply-To: <7DBDA1C7-A141-4EBA-BF5B-9070E8CB1A5A@univie.ac.at> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Neuwirth Erich Cc: "emacs-orgmode@gnu.org emacs-orgmode@gnu.org" On Tue, Sep 11, 2012 at 10:26 AM, Neuwirth Erich wrote: > I am trying to produce pdf through latex with R in org. > I am using MacTeX 2012, Emacs 24.2, and org mode version 7.9.1 (on Mountain Lion) > > I have the the following code segment. > > > #+BEGIN_SRC R :session *R* :results output graphics :file first.png :exports both > plot((0:10)^2,type="l") > #+END_SRC > > > It does not work. > It produces text output and then stops. > When I run latex on this manually, TeX complains about a missing bounding box. - Your code block uses ":file first.png". Your LaTeX error complains about a file named agegraph.png. Assuming the above is just a reproducible example where you changed the file name, and that the error was copied/pasted from your real example? - Is the file first.png created and when you open it, is it correct and read by your viewer? - When you switch to the *R* buffer and do getwd(), is the directory the same as your output .tex file and .png picture? Not sure these questions will be of relevance, just some that came to mind based on errors I've had, though I've not had a bounding box error before. Also, a quick google search returned this; you might not have an Org issue here: - http://stackoverflow.com/questions/731933/error-including-image-in-latex - http://tex.stackexchange.com/questions/6852/cannot-determine-size-of-graphic-in-no-boundingbox John > > ! LaTeX Error: Cannot determine size of graphic in agegraph.png (no BoundingBox > ). > > See the LaTeX manual or LaTeX Companion for explanation. > Type H for immediate help. > ... > > l.863 ...raphics[width=.9\linewidth]{agegraph.png} > > html output works. > > I dimly remember that the same file worked with a previous version of org and MacTeX 2011.