From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: ODT export of SVG image, wrong size properties Date: Thu, 07 Sep 2017 23:09:13 -0400 Message-ID: <15e5f767875.c1b2aa1a12152.7159829764560940630@zoho.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dq9fW-0006X5-Vq for emacs-orgmode@gnu.org; Thu, 07 Sep 2017 23:09:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dq9fR-0001l9-Th for emacs-orgmode@gnu.org; Thu, 07 Sep 2017 23:09:22 -0400 Received: from sender-pp-091.zoho.com ([135.84.80.236]:25092) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dq9fR-0001ip-LM for emacs-orgmode@gnu.org; Thu, 07 Sep 2017 23:09:17 -0400 In-Reply-To: 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 Hi, I am exporting a document to ODT, including a small SVG image. #+name: Notation1 #+caption: Transcription into Western notation of an example pattern string. #+attr_odt: :width 6.88 :height 1.87 [[./notated-example.svg]] The frame properties, however, do not respect the given size attributes. "svg:width" and "svg:height" are correct, but the style also specifies ~rel-height="scale"~ and, in LibreOffice 5.1, this overrides the specific height. So the image gets squashed: it's displayed with 33% of the height it should have. Initially I tried without any "#+attr_odt" and got the incorrect display. The org manual says: > To embed img.png with a height of 10 cm while retaining the original height:width ratio, do the following > > #+ATTR_ODT: :height 10 > [[./img.png]] But I get the same incorrect result this way as well. So I tried setting the width and height explicitly to the SVG's dimensions, and the display is still wrong. hjh