From: Nick Dokos <nicholas.dokos@hp.com>
To: Ken.Williams@thomsonreuters.com
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: Spurious source-code output?
Date: Thu, 05 May 2011 11:37:52 -0400 [thread overview]
Message-ID: <30125.1304609872@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from <Ken.Williams@thomsonreuters.com> of "Thu, 05 May 2011 10:24:28 CDT." <C9E82B5C.2BF08%ken.williams@thomsonreuters.com>
<Ken.Williams@thomsonreuters.com> 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
next prev parent reply other threads:[~2011-05-05 15:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-05 15:24 Spurious source-code output? Ken.Williams
2011-05-05 15:37 ` Nick Dokos [this message]
2011-05-05 15:40 ` Ken.Williams
2011-05-05 15:55 ` Nick Dokos
2011-05-05 17:07 ` Thomas S. Dye
2011-05-05 17:45 ` Nick Dokos
2011-05-05 18:28 ` [Patch] Documentation, was " Thomas S. Dye
2011-05-05 19:09 ` Nick Dokos
2011-05-05 19:31 ` Thomas S. Dye
2011-05-05 19:48 ` Nick Dokos
2011-05-05 21:03 ` Nick Dokos
2011-05-05 20:52 ` Eric Schulte
2011-05-05 21:51 ` Nick Dokos
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=30125.1304609872@alphaville.dokosmarshall.org \
--to=nicholas.dokos@hp.com \
--cc=Ken.Williams@thomsonreuters.com \
--cc=emacs-orgmode@gnu.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.