From: Jarmo Hurri <jarmo.hurri@iki.fi>
To: emacs-orgmode@gnu.org
Subject: Scaling HTML-exported SVG
Date: Fri, 22 Jul 2016 16:10:30 +0300 [thread overview]
Message-ID: <87y44tx1h5.fsf@iki.fi> (raw)
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
next reply other threads:[~2016-07-22 13:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-22 13:10 Jarmo Hurri [this message]
2016-07-24 17:09 ` Scaling HTML-exported SVG Christian Moe
2016-07-24 17:55 ` Jarmo Hurri
2016-07-24 18:48 ` Jarmo Hurri
2016-07-24 21:26 ` Christian Moe
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=87y44tx1h5.fsf@iki.fi \
--to=jarmo.hurri@iki.fi \
--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).