From: James Harkins <jamshark70@zoho.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: ODT export of SVG image, wrong size properties
Date: Thu, 07 Sep 2017 23:09:13 -0400 [thread overview]
Message-ID: <15e5f767875.c1b2aa1a12152.7159829764560940630@zoho.com> (raw)
In-Reply-To:
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.
<draw:frame draw:style-name="OrgCaptionedImage" svg:width="6.88cm" svg:height="1.27cm" style:rel-width="100%" style:rel-height="scale" text:anchor-type="paragraph" draw:name="Frame1">
<draw:image xlink:href="Images/0001.svg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
</draw:frame>
"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
reply other threads:[~2017-09-08 3:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15e5f767875.c1b2aa1a12152.7159829764560940630@zoho.com \
--to=jamshark70@zoho.com \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.