LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Joseph Wright <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Sun, 29 Jun 2014 14:29:55 +0100
text/plain (44 lines)
On 27/06/2014 13:51, Alexander Grahn wrote:
> Hello,
> some of the possible `\resizebox` usages don't map to corresponding
> l3box functions.
> In particular, I am looking for
>   \resizebox{<h-size>}{<v-size>}
> and 
>   \resizebox{!}{<v-size>}
> The first one resizes width and height of the original box to the provided
> <h-size> and <v-size> values and the second one only the height, while
> maintaining the original aspect ratio of the box content.
> The existing \box_resize:Nnn resizes width and totalheight, but I am
> looking for resizing width and height.
> There is a \box_resize_to_ht_plus_dp:Nn, but \box_resize_to_ht:Nn is
> missing.
> Could they be provided in a future l3box version?
> Thanks and kind regards,
> Alexander

I've not noted it down, but I think the reason I went for just 'total
height' functions here is that the end result then has a dimension (or
dimensions) that are explicit in the code. Something like


gives you a box that is not necessarily the vertical size you've put
into your code, which could be regarded as a bit odd. (It's also doable
by viewing this operation as a scaling to ht_new/ht_old.) Of course,
this might just be me: one reason these are in the 'candidates' part of
l3kernel is they've not been discussed a lot, so some feedback is almost
certainly required.
Joseph Wright