From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Including SVG images in html document Date: Thu, 15 Mar 2012 11:06:56 -0400 Message-ID: <27430.1331824016@alphaville> References: <20120315125557.GF863@smoon> <27306.1331823488@alphaville> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8CGf-0004K4-UM for emacs-orgmode@gnu.org; Thu, 15 Mar 2012 11:07:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8CGZ-0002gP-NX for emacs-orgmode@gnu.org; Thu, 15 Mar 2012 11:07:05 -0400 Received: from g1t0027.austin.hp.com ([15.216.28.34]:26693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8CGZ-0002fn-Ic for emacs-orgmode@gnu.org; Thu, 15 Mar 2012 11:06:59 -0400 In-Reply-To: Message from Nick Dokos of "Thu, 15 Mar 2012 10:58:08 EDT." <27306.1331823488@alphaville> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Vladimir Lomov , emacs-orgmode@gnu.org Cc: nicholas.dokos@hp.com Nick Dokos wrote: > Vladimir Lomov 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