emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Scaling HTML-exported SVG
@ 2016-07-22 13:10 Jarmo Hurri
  2016-07-24 17:09 ` Christian Moe
  0 siblings, 1 reply; 5+ messages in thread
From: Jarmo Hurri @ 2016-07-22 13:10 UTC (permalink / raw)
  To: emacs-orgmode


Greetings.

Does anyone have any idea of how to scale an SVG figure produced by Org
(Asymptote)? The exported HTML is

<div class="figure">
<p><object type="image/svg+xml" data="pisteita-koordinaatistossa.svg" >
Sorry, your browser does not support SVG.</object>
</p>
</div>

and the SVG file begins with

<?xml version='1.0'?>
<!-- This file was generated by dvisvgm 1.9.2 -->
<svg height='363.616pt' version='1.1' viewBox='56.6209 54.0603 602.25 363.616' width='602.25pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>

I have tried various approaches in my CSS, but nothing has worked so
far. I have searched online, and scaling SVG files seems to be a mess.

I basically want to scale the SVG file to be, say 80% of viewed
width. My first try was

.figure
{
    width: 80vw;
}


After that I have tried maybe 120 other versions, and nothing has worked.

Jarmo

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-07-24 21:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-22 13:10 Scaling HTML-exported SVG Jarmo Hurri
2016-07-24 17:09 ` Christian Moe
2016-07-24 17:55   ` Jarmo Hurri
2016-07-24 18:48     ` Jarmo Hurri
2016-07-24 21:26       ` Christian Moe

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).