all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rainer M Krug <r.m.krug@gmail.com>
To: Vikas Rawal <vikaslists@agrarianresearch.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: [babel] show R commands in html export
Date: Mon, 19 Jul 2010 14:38:18 +0200	[thread overview]
Message-ID: <4C44473A.7000908@mail.com> (raw)
In-Reply-To: <20100719115146.GA22240@panahar>

-----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-----

  reply	other threads:[~2010-07-19 12:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-19 11:51 [babel] show R commands in html export Vikas Rawal
2010-07-19 12:38 ` Rainer M Krug [this message]
2010-07-19 13:39   ` Vikas Rawal

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=4C44473A.7000908@mail.com \
    --to=r.m.krug@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=vikaslists@agrarianresearch.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.