<ken.willi...@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