From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Spurious source-code output? Date: Thu, 05 May 2011 11:37:52 -0400 Message-ID: <30125.1304609872@alphaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI0d5-00059W-7M for emacs-orgmode@gnu.org; Thu, 05 May 2011 11:38:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QI0d4-0000Ce-1q for emacs-orgmode@gnu.org; Thu, 05 May 2011 11:38:15 -0400 Received: from vms173007pub.verizon.net ([206.46.173.7]:42604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI0d3-0000CW-UG for emacs-orgmode@gnu.org; Thu, 05 May 2011 11:38:14 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173007.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LKQ00360BF46860@vms173007.mailsrvcs.net> for emacs-orgmode@gnu.org; Thu, 05 May 2011 10:38:02 -0500 (CDT) In-reply-to: Message from of "Thu, 05 May 2011 10:24:28 CDT." 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: Ken.Williams@thomsonreuters.com Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org wrote: > Hi, > > I've got the following source-code section in a sample org-mode document: > > #+BEGIN_SRC R :exports output :results graphics :file t.png > plot(1:10, 1:10) > #+END_SRC > > My intention is to show just the figure, not the source code, when I export= > to HTML. But when I do 'C-c C-c' to evaluate the code (which produces a "= > #+results:" section as expected) and then 'C-c C-e b' to produce the HTML, = > I'm getting both the source code and the plot in the output. > > I must be misunderstanding the BEGIN_SRC parameters? Could anyone correct = > me? > > I'm using Org-mode 7.5 with Aquamacs 2.2 (GNU Emacs 23.3.1). Thanks. > Try ``:exports results'' - the Org manual says: ,---- | | 14.8.2.5 `:exports' | ................... | | The `:exports' header argument specifies what should be included in HTML | or LaTeX exports of the Org-mode file. | | * `code' The default. The body of code is included into the | exported file. E.g., `:exports code'. | | * `results' The result of evaluating the code is included in the | exported file. E.g., `:exports results'. | | * `both' Both the code and results are included in the exported | file. E.g., `:exports both'. | | * `none' Nothing is included in the exported file. E.g., `:exports | none'. `---- Nick