[quickbook] svg image and width/height specifications

Raffi Enficiaud <[email protected]> Tue, 27 Oct 2015 13:34:32 +0100
Newsgroups gmane.comp.lib.boost.documentation
Message-ID <[email protected]>
Hi,

I would like to include an SVG to the documentation.

The first question is if this is supported by quickbook (I know this is 
supported in the browsers/html, but my question is more oriented toward 
the other formats).

The second question is how to specify the width. I use the [width xxx] 
attribute of the image, and it looks like there is a problem in the 
generated HTML.

The following quickbook code
[$images/boost_runtime_list_content.svg [width 80%]]

is rendered to

<span class="inlinemediaobject"><object type="image/svg+xml" 
data="../../../images/boost_runtime_list_content.svg" width="1665" 
height="745"></object></span>

I do not know where the 1665/745 come from, and why I have both the 
width and height. When I remove the height and put width="80%", 
everything is rendered as I want.

I tried several alternatives according to the docbook documentation, but 
I wasn't very successful so far.

Thanks,
Raffi