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_-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Export width for generated SVG image? Date: Tue, 26 Mar 2013 15:48:39 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKanT-00056I-DP for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 16:48:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKanR-0008TZ-RW for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 16:48:43 -0400 Received: from mail-la0-x22e.google.com ([2a00:1450:4010:c03::22e]:43208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKanR-0008TL-Jc for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 16:48:41 -0400 Received: by mail-la0-f46.google.com with SMTP id fq12so14441048lab.19 for ; Tue, 26 Mar 2013 13:48:39 -0700 (PDT) In-Reply-To: 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: Ken Williams Cc: "emacs-orgmode@gnu.org" On Tue, Mar 26, 2013 at 3:16 PM, Ken Williams wrote: > I=E2=80=99m using a =E2=80=98dot=E2=80=99 section to create an SVG image,= then exporting my document > to HTML: [deleted] > My diagram ends up pretty huge though, and I want to shrink it down. > ":width 1000" doesn=E2=80=99t seem to have any effect, nor does wrapping = like so: [deleted] > Any suggestions? This works for me on version 8.0-pre #+attr_html: :width 100% [[image.svg]] Are you using the new exporter or old? I believe the old syntax would have = been: #+attr_html width=3D"100%" [[image.svg]] But try with and without quotes (I can't check for the old exporter syntax on my setup anymore... well, I /could/ but that's a lot of work!). John > > I=E2=80=99m 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, pleas= e > contact the sender via reply e-mail and destroy all copies of the origina= l > message. Thank you. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Williams Subject: Re: Export width for generated SVG image? Date: Tue, 26 Mar 2013 21:25:33 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKbND-0000nn-6N for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 17:25:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKbN9-0004mm-SR for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 17:25:39 -0400 Received: from owa.windlogics.com ([216.245.170.169]:49328) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKbN9-0004m4-NA for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 17:25:35 -0400 In-Reply-To: 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: John Hendy Cc: "emacs-orgmode@gnu.org" DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogSm9obiBIZW5keSBbbWFp bHRvOmp3LmhlbmR5QGdtYWlsLmNvbV0NCj4gU2VudDogVHVlc2RheSwgTWFyY2ggMjYsIDIwMTMg Mzo0OSBQTQ0KPg0KPiBBcmUgeW91IHVzaW5nIHRoZSBuZXcgZXhwb3J0ZXIgb3Igb2xkPyBJIGJl bGlldmUgdGhlIG9sZCBzeW50YXggd291bGQgaGF2ZQ0KPiBiZWVuOg0KPg0KPiAjK2F0dHJfaHRt bCB3aWR0aD0iMTAwJSINCj4gW1tpbWFnZS5zdmddXQ0KDQpCZWF1dGlmdWwsIHRoYW5rcy4NCg0K IC1LZW4NCg0KDQpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXw0KDQpDT05GSURFTlRJ QUxJVFkgTk9USUNFOiBUaGlzIGUtbWFpbCBtZXNzYWdlIGlzIGZvciB0aGUgc29sZSB1c2Ugb2Yg dGhlIGludGVuZGVkIHJlY2lwaWVudChzKSBhbmQgbWF5IGNvbnRhaW4gY29uZmlkZW50aWFsIGFu ZCBwcml2aWxlZ2VkIGluZm9ybWF0aW9uLiBBbnkgdW5hdXRob3JpemVkIHJldmlldywgdXNlLCBk aXNjbG9zdXJlIG9yIGRpc3RyaWJ1dGlvbiBvZiBhbnkga2luZCBpcyBzdHJpY3RseSBwcm9oaWJp dGVkLiBJZiB5b3UgYXJlIG5vdCB0aGUgaW50ZW5kZWQgcmVjaXBpZW50LCBwbGVhc2UgY29udGFj dCB0aGUgc2VuZGVyIHZpYSByZXBseSBlLW1haWwgYW5kIGRlc3Ryb3kgYWxsIGNvcGllcyBvZiB0 aGUgb3JpZ2luYWwgbWVzc2FnZS4gVGhhbmsgeW91Lg0K