* Exporting babel-result images inline
@ 2010-02-20 14:34 Taru Karttunen
2010-03-20 16:51 ` Eric Schulte
0 siblings, 1 reply; 2+ messages in thread
From: Taru Karttunen @ 2010-02-20 14:34 UTC (permalink / raw)
To: emacs-orgmode
Hello
I have org-babel code like
#+begin_src R :var data=foo :file foo.png :exports results
pie(data[,2], labels = data[,1]) #+end_src
Which ends up html-exported as:
<p><img ... /></p>
I would like to export the generated image inline rather than as a
separate paragraph. However matching that <p> does not work with
CSS as it lacks parent selectors. ATTR_HTML only affects the <img>
which does not help.
Any ideas?
- Taru Karttunen
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Exporting babel-result images inline
2010-02-20 14:34 Exporting babel-result images inline Taru Karttunen
@ 2010-03-20 16:51 ` Eric Schulte
0 siblings, 0 replies; 2+ messages in thread
From: Eric Schulte @ 2010-03-20 16:51 UTC (permalink / raw)
To: Taru Karttunen; +Cc: emacs-orgmode
Hi Taur,
Maybe you could wrap the entire source code block in a div and then use
CSS to change the attributes of the div and the contained paragraph and
image
#+HTML: <div class="inline-paragraphs">
source block....
#+HTML: </div>
-- Eric
Taru Karttunen <taruti@taruti.net> writes:
> Hello
>
> I have org-babel code like
>
> #+begin_src R :var data=foo :file foo.png :exports results
> pie(data[,2], labels = data[,1]) #+end_src
>
> Which ends up html-exported as:
>
> <p><img ... /></p>
>
> I would like to export the generated image inline rather than as a
> separate paragraph. However matching that <p> does not work with
> CSS as it lacks parent selectors. ATTR_HTML only affects the <img>
> which does not help.
>
> Any ideas?
>
> - Taru Karttunen
>
>
>
>
> _______________________________________________
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-20 16:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-20 14:34 Exporting babel-result images inline Taru Karttunen
2010-03-20 16:51 ` Eric Schulte
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).