[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Including SVG images in html document
From: |
Nick Dokos |
Subject: |
Re: [O] Including SVG images in html document |
Date: |
Thu, 15 Mar 2012 11:06:56 -0400 |
Nick Dokos <address@hidden> wrote:
> Vladimir Lomov <address@hidden> wrote:
>
> > Hello,
> > according to org mode documentation it is possible to include SVG images
> > while exporting to Docbook, but is it possible to use them in html
> > export too?
> >
> > Small example:
> >
> > #+TITLE: Export to HTML with SVG image
> > #+AUTHOR: Vladimir Lomov
> >
> > * SVG image in HTML document
> >
> > #+name: gnuplot-img1
> > #+begin_src gnuplot :exports both
> > set term svg
> > set output "gnuplot-img1.svg"
> > plot [-pi:pi] sin(x)
> > #+end_src
> >
> > The graph of \sin(x) function in range [-\pi;\pi]
> > [[file:gnuplot-img1.svg]]
> >
>
> It works if you add a :session *G* header argument to the code block -
> without it, I get a blank image. I'm not sure what the rules are, so I
> can't say whether it should work without :session.
>
No, that's wrong: it seems to produce a blank image the first time that
the block is executed, but it works if it is executed a second time
(with or without :session). Not sure why.
Nick