From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: Scaling HTML-exported SVG Date: Sun, 24 Jul 2016 19:09:53 +0200 Message-ID: References: <87y44tx1h5.fsf@iki.fi> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRMud-0002uV-Aa for emacs-orgmode@gnu.org; Sun, 24 Jul 2016 13:10:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRMuZ-0004C1-6l for emacs-orgmode@gnu.org; Sun, 24 Jul 2016 13:09:59 -0400 Received: from mail2.b1.hitrost.net ([91.185.211.205]:28322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRMuY-0004Bv-W0 for emacs-orgmode@gnu.org; Sun, 24 Jul 2016 13:09:55 -0400 In-reply-to: <87y44tx1h5.fsf@iki.fi> 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" To: Jarmo Hurri Cc: emacs-orgmode@gnu.org Jarmo Hurri writes: > Greetings. > > Does anyone have any idea of how to scale an SVG figure produced by Org > (Asymptote)? The exported HTML is > >
>

> Sorry, your browser does not support SVG. >

>
(Suggested an answer on another thread. For completeness:) You can scale the SVG by scaling the element's container, i.e. the
with class "figure". Setting attributes on the image link with #+attr_html as usual should work, because they are passed to the figure container rather than to the . Either: #+attr_html: :width 200px [[path/to/image.svg]] or: #+html_head_extra: #+attr_html: :id svgfig [[path/to/image.svg]] For this to work, the SVG needs to be written to be scalable (with viewport set etc.). Yours, Christian