* Export width for generated SVG image?
@ 2013-03-26 20:16 Ken Williams
2013-03-26 20:48 ` John Hendy
0 siblings, 1 reply; 3+ messages in thread
From: Ken Williams @ 2013-03-26 20:16 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
[-- 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 --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Export width for generated SVG image?
2013-03-26 20:16 Export width for generated SVG image? Ken Williams
@ 2013-03-26 20:48 ` John Hendy
2013-03-26 21:25 ` Ken Williams
0 siblings, 1 reply; 3+ messages in thread
From: John Hendy @ 2013-03-26 20:48 UTC (permalink / raw)
To: Ken Williams; +Cc: emacs-orgmode@gnu.org
On Tue, Mar 26, 2013 at 3:16 PM, Ken Williams
<Ken.Williams@windlogics.com> wrote:
> I’m using a ‘dot’ 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’t 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="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’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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Export width for generated SVG image?
2013-03-26 20:48 ` John Hendy
@ 2013-03-26 21:25 ` Ken Williams
0 siblings, 0 replies; 3+ messages in thread
From: Ken Williams @ 2013-03-26 21:25 UTC (permalink / raw)
To: John Hendy; +Cc: emacs-orgmode@gnu.org
> -----Original Message-----
> From: John Hendy [mailto:jw.hendy@gmail.com]
> Sent: Tuesday, March 26, 2013 3:49 PM
>
> Are you using the new exporter or old? I believe the old syntax would have
> been:
>
> #+attr_html width="100%"
> [[image.svg]]
Beautiful, thanks.
-Ken
________________________________
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-03-26 21:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-26 20:16 Export width for generated SVG image? Ken Williams
2013-03-26 20:48 ` John Hendy
2013-03-26 21:25 ` Ken Williams
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.