From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Re: Scaling HTML-exported SVG Date: Sun, 24 Jul 2016 20:55:09 +0300 Message-ID: <87y44qdipu.fsf@iki.fi> 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]:49497) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRNhF-0007VL-G9 for emacs-orgmode@gnu.org; Sun, 24 Jul 2016 14:00:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRNhC-00064v-DE for emacs-orgmode@gnu.org; Sun, 24 Jul 2016 14:00:13 -0400 Received: from plane.gmane.org ([80.91.229.3]:49873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRNhC-00064b-6E for emacs-orgmode@gnu.org; Sun, 24 Jul 2016 14:00:10 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bRNhA-000486-E8 for emacs-orgmode@gnu.org; Sun, 24 Jul 2016 20:00:08 +0200 Received: from 82-181-168-52.bb.dnainternet.fi ([82.181.168.52]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Jul 2016 20:00:03 +0200 Received: from jarmo.hurri by 82-181-168-52.bb.dnainternet.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Jul 2016 20:00:03 +0200 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: emacs-orgmode@gnu.org Christian Moe writes: > Jarmo Hurri writes: >> 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. >>

>>
> > 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.). (Also addressed this in the other thread; also here for completeness.) But this means scaling on a file-by-file basis, which is very inconvenient for any larger projects. Jarmo