emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Vladimir Lomov <lomov.vl@gmail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: Including SVG images in html document
Date: Thu, 15 Mar 2012 10:58:08 -0400	[thread overview]
Message-ID: <27306.1331823488@alphaville> (raw)
In-Reply-To: Message from Vladimir Lomov <lomov.vl@gmail.com> of "Thu, 15 Mar 2012 21:55:57 +0900." <20120315125557.GF863@smoon>

Vladimir Lomov <lomov.vl@gmail.com> 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.

Nick

  reply	other threads:[~2012-03-15 14:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-15 12:55 Including SVG images in html document Vladimir Lomov
2012-03-15 14:58 ` Nick Dokos [this message]
2012-03-15 15:06   ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=27306.1331823488@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=lomov.vl@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).