Discussion:
No width or depth used for MetaPost output files
Steinar Bang
2003-05-03 22:37:31 UTC
Permalink
Version: db2latex CVS update from earlier today

If I have <imageobject> elements for MetaPost PostScript files, depth
or width attributes aren't transferred to the resulting
\includegraphics command in the TeX files.

Using the scale attribute works, though.


- Steinar



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
James Devenish
2003-05-04 02:10:08 UTC
Permalink
Post by Steinar Bang
Version: db2latex CVS update from earlier today
or width attributes aren't transferred to the resulting
\includegraphics command in the TeX files.
You will need to supply a DocBook example.
Post by Steinar Bang
Using the scale attribute works, though.
Are you missing scalefit="1"?




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Steinar Bang
2003-05-04 06:42:08 UTC
Permalink
Post by James Devenish
Are you missing scalefit="1"?
Er, yes. So I was. Sorry.

With a scalefit="1" attribute on the <imageobject>, either width or
depth are used as \includegraphics command arguments. If both width
and depth are in place, only width is used in \includegraphics.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
James Devenish
2003-05-04 11:31:21 UTC
Permalink
If both width and depth are in place, only width is used in
\includegraphics.
One day, on our way toward implementing imagedata for DocBook 2, this
will get fixed. However, it still might not do what you want.
<http://docbook.org/tdg/en/html/imagedata.html> says:
"If scaling to fit is requested, the content area is scaled until
either the content width is the same as the viewport width (and the
content depth is less than or equal to the viewport depth) or the
content depth is the same as the viewport depth (and the content width
is less than or equal to the viewport width), whichever comes first. In
other words, scaling to fit never causes anamorphic scaling, it simply
scales the image as large as possible without overflowing the bounds of
the viewport area."




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

Loading...