From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: [babel] show R commands in html export Date: Mon, 19 Jul 2010 14:38:18 +0200 Message-ID: <4C44473A.7000908@mail.com> References: <20100719115146.GA22240@panahar> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=54216 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oapoj-0001vP-6R for emacs-orgmode@gnu.org; Mon, 19 Jul 2010 08:51:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oapbz-00040F-0c for emacs-orgmode@gnu.org; Mon, 19 Jul 2010 08:38:24 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:63932) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oapby-00040B-S5 for emacs-orgmode@gnu.org; Mon, 19 Jul 2010 08:38:22 -0400 Received: by ewy28 with SMTP id 28so1430904ewy.0 for ; Mon, 19 Jul 2010 05:38:22 -0700 (PDT) In-Reply-To: <20100719115146.GA22240@panahar> 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: Vikas Rawal Cc: emacs-orgmode@gnu.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 19/07/2010 13:51, Vikas Rawal wrote: > Is it possible that org-babel shows not just the output of R commands > but also R commands themselves in the html output? Yes. Look at the header argument exports: : as stated in the manual: 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. That should solve your problem. Cheers, Rainer > > I could perhaps write the commands twice, once outside the code block > (to make the commands appear as they are), and once inside the > codeblock to display output of those commands. But is there a better > solution? > > If using them twice is the only way, what would be the best way to > set the code (when typed outside the codeblock) so that it is > formatted properly in the html output? > > Vikas > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Tel: +33 - (0)9 53 10 27 44 Cell: +27 - (0)8 39 47 90 42 Fax (SA): +27 - (0)8 65 16 27 82 Fax (D) : +49 - (0)3 21 21 25 22 44 Fax (FR): +33 - (0)9 58 10 27 44 email: Rainer@krugs.de Skype: RMkrug -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxERzoACgkQoYgNqgF2egrzZwCfblz8+7ULmso9nn1E+3tjUcEP VZ4An1P5Tyfi53kKXAGZNGoNKZz4IK0K =aI5o -----END PGP SIGNATURE-----