Menu

#11 allow to combine scale&pagebound in imagedata.default.scale

open
nobody
None
5
2007-08-20
2007-08-20
Sven Beyer
No

I need to apply some pre-skaling to images. It is quite obvious that those images that do not fit into the page should be scaled further. In db2latex, I managed this with some xsl stylesheets, basically just creating a
\resizebox{\ifdim\width>\linewidth\linewidth\else\width\fi}{!}{...}
around the includegraphics and in case there was no scale given, I scaled with my default size. I imagine I can do a similar hack for dblatex, but there is already a pagebound attribute there and I would guess that the idea of using default scaling together with the pagebound attribute does not really seem so special that it's only me who is interested in it...
So being able to write just "pagebound,scale=..." would be the nicest solution. Of course, one can imagine replacing pagebound by maxwidth/height and things still make sense.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB