LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

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

Print Reply
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
Date: Sun, 29 Jun 2014 14:29:55 +0100
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
Message-ID: <[log in to unmask]>
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
In-Reply-To: <[log in to unmask]>
Content-Type: text/plain; charset=ISO-8859-15
From: Joseph Wright <[log in to unmask]>
Parts/Attachments: 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