emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ken Williams <Ken.Williams@windlogics.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Export width for generated SVG image?
Date: Tue, 26 Mar 2013 20:16:05 +0000	[thread overview]
Message-ID: <DB9AE166BFBB0640B307A82E6F93D026022B84@SPEXCH02.WindLogics.local> (raw)

[-- Attachment #1: Type: text/plain, Size: 1112 bytes --]

I'm using a 'dot' section to create an SVG image, then exporting my document to HTML:

#+BEGIN_SRC dot :exports results :file process-diag.svg
digraph {
  "foo.rds" -> "foo.csv";
  ...
}
#+END_SRC

My diagram ends up pretty huge though, and I want to shrink it down.  ":width 1000" doesn't seem to have any effect, nor does wrapping like so:

#+BEGIN_HTML
<div style="width:100%">
#+END_HTML

... dot diagram here ...

#+BEGIN_HTML
</div>
#+END_HTML

... because the interior SVG just overrides the width of its parent.

Any suggestions?

I'm using version 7.9.2-dist .  Thanks.

--
Ken Williams, Senior Research Scientist
WindLogics
http://windlogics.com


________________________________

CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of any kind is strictly prohibited. If you are not the intended recipient, please contact the sender via reply e-mail and destroy all copies of the original message. Thank you.

[-- Attachment #2: Type: text/html, Size: 3065 bytes --]

             reply	other threads:[~2013-03-26 20:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-26 20:16 Ken Williams [this message]
2013-03-26 20:48 ` Export width for generated SVG image? John Hendy
2013-03-26 21:25   ` Ken Williams

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=DB9AE166BFBB0640B307A82E6F93D026022B84@SPEXCH02.WindLogics.local \
    --to=ken.williams@windlogics.com \
    --cc=emacs-orgmode@gnu.org \
    /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).