From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Magwene Subject: Weirdness re: inclusion of figures Date: Wed, 15 Feb 2012 22:42:38 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxsF0-0003sz-3P for emacs-orgmode@gnu.org; Wed, 15 Feb 2012 22:42:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RxsEz-0002m1-0V for emacs-orgmode@gnu.org; Wed, 15 Feb 2012 22:42:42 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:64781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxsEy-0002lS-PP for emacs-orgmode@gnu.org; Wed, 15 Feb 2012 22:42:40 -0500 Received: by wibhj13 with SMTP id hj13so1256465wib.0 for ; Wed, 15 Feb 2012 19:42:39 -0800 (PST) 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: emacs-orgmode@gnu.org Hi All, I'm trying to get up to speed with org-mode and babel for doing reproducible computational research. I'm just starting to play around with simple examples, and I'm baffled by the following. This first example, when exported to HTML or LaTeX produces the expected result -- a simply code block with one embedded figure. # Example 1. This is my R example: #+begin_src R :file z.png :results output graphics plot(matrix(rnorm(100), ncol=2), type="l") #+end_src Some intervening text... #+results: [[file:z.png]] However, this almost identical example, minus the intervening text between the code and the results, doesn't include the figure: # Example 2 This is my R example: #+begin_src R :file z.png :results output graphics plot(matrix(rnorm(100), ncol=2), type="l") #+end_src #+results: [[file:z.png]] What gives here? Do I always need to have intervening text between the source code and results in order to get a figure in the exported document? Thanks, Paul