emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Weirdness re: inclusion of figures
@ 2012-02-16  3:42 Paul Magwene
  2012-02-16  3:45 ` Paul
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Paul Magwene @ 2012-02-16  3:42 UTC (permalink / raw)
  To: emacs-orgmode

Hi All,

I'm trying to get up to speed with org-mode and babel for doing
reproducible computational research.  I'm just starting to play around
with simple examples, and I'm baffled by the following.

This first example, when exported to HTML or LaTeX produces the
expected result -- a simply code block with one embedded figure.

# Example 1.

This is my R example:

#+begin_src R :file z.png :results output graphics
plot(matrix(rnorm(100), ncol=2), type="l")
#+end_src

Some intervening text...

#+results:
[[file:z.png]]


However, this almost identical example, minus the intervening text
between the code and the results, doesn't include the figure:

# Example 2

This is my R example:

#+begin_src R :file z.png :results output graphics
plot(matrix(rnorm(100), ncol=2), type="l")
#+end_src

#+results:
[[file:z.png]]


What gives here? Do I always need to have intervening text between the
source code and results in order to get a figure in the exported
document?

Thanks,
Paul

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-02-16 13:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-16  3:42 Weirdness re: inclusion of figures Paul Magwene
2012-02-16  3:45 ` Paul
2012-02-16  4:44 ` Nick Dokos
2012-02-16 12:59 ` Yu

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).