From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Williams Subject: Export width for generated SVG image? Date: Tue, 26 Mar 2013 20:16:05 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_DB9AE166BFBB0640B307A82E6F93D026022B84SPEXCH02WindLogic_" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKabj-0001xW-0s for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 16:36:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKabc-00057X-KV for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 16:36:34 -0400 Received: from owa.windlogics.com ([216.245.170.169]:60414) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKabc-000576-BU for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 16:36:28 -0400 Content-Language: en-US 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: "emacs-orgmode@gnu.org" --_000_DB9AE166BFBB0640B307A82E6F93D026022B84SPEXCH02WindLogic_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I'm using a 'dot' section to create an SVG image, then exporting my documen= t 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. ":wid= th 1000" doesn't seem to have any effect, nor does wrapping like so: #+BEGIN_HTML
#+END_HTML ... dot diagram here ... #+BEGIN_HTML
#+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 inte= nded recipient(s) and may contain confidential and privileged information. = Any unauthorized review, use, disclosure or distribution of any kind is str= ictly prohibited. If you are not the intended recipient, please contact the= sender via reply e-mail and destroy all copies of the original message. Th= ank you. --_000_DB9AE166BFBB0640B307A82E6F93D026022B84SPEXCH02WindLogic_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I’m using a ‘dot’ section to creat= e an SVG image, then exporting my document to HTML:

 

#+BEGIN_SRC dot :exports results :file process-d= iag.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 a= ny effect, nor does wrapping like so:

 

#+BEGIN_HTML

<div style=3D"width:100%">

#+END_HTML

 

... dot diagram here ...

 

#+BEGIN_HTML

</div>

#+END_HTML

 

... because the interior SVG just overrides the widt= h of its parent.

 

Any suggestions?

 

I’m using version 7.9.2-dist .  Thanks.

 

--

Ken Williams, Senior Research Scientist

Wind<= /b>Logics<= /p>

http://windlogics.com

 




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