Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id s5TDWvvO010923 for ; Sun, 29 Jun 2014 15:32:59 +0200 Received: from relay2.uni-heidelberg.de ([129.206.210.211]) by mx-ha.gmx.net (mxgmx112) with ESMTPS (Nemesis) id 0LmO0k-1WSjgc11Ig-00Ztk2 for ; Sun, 29 Jun 2014 15:32:52 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s5TDU5nv024805 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 29 Jun 2014 15:30:05 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s5TDFCtS031256; Sun, 29 Jun 2014 15:30:04 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 11075349 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sun, 29 Jun 2014 15:30:04 +0200 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s5TDU4Vv032010 for ; Sun, 29 Jun 2014 15:30:04 +0200 Received: from smtp1.easily.co.uk (smtp1.easily.co.uk [91.194.151.16]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s5TDTtUi024706 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 29 Jun 2014 15:29:58 +0200 Received: from [86.184.175.140] (port=54344 helo=palladium.local) by smtp1.easily.co.uk with esmtpa (Exim 4.43) id 1X1FB5-0006Vm-FG for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sun, 29 Jun 2014 14:29:55 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 References: <20140627125102.GA10460@hzdr.de> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Message-ID: <53B014D3.1000208@morningstar2.co.uk> Date: Sun, 29 Jun 2014 14:29:55 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: missing l3box counterparts of graphics' \resizebox variants To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <20140627125102.GA10460@hzdr.de> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: Envelope-To: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=V3; X-GMX-Antivirus: 0 (no virus found) X-UI-Filterresults: notjunk:1;V01:K0:lKQy1ZgkvBE=:bMuHeEhh53EHtarbI5Q5Dk4TMd RExU1tWvVUNUuivpcJVgzU+C5SWPBFcEjdk+7kGz0Q90VZlOCzYd2ezurIcgZ8oLJbUMbxR1u Q4dGefkZpTtMFdoX7AhLYLEGBZslKPsb+B2jP9vr7mE1l8YShRFY+JY8DQDCaHCS5pnyqcwVg W8QCKL75mlvFtTCgyWOtblZzoSjp1fgh5mfN8QJEEDaThAzdVmm5QwHLToAdlqxrm+OzGoXuZ AZLhfpnTr3/LNlI0nzSO55sgdBCX7ZLqEY+ybgKS4BOlljzbPQmt4wHAvh5rxwooBEJDhSLNu WJfXRMVpGVVJjawzn+LNDIAQ8lDocraTbC/4YSq0zb7WIIp+8Ww0qjoH5bnDnZT6yBORcTNmy Sslgry4AxlHF1WiioHlCTi1IcyIwE8xq4tfyWn3IrnxriutqFsA37nLz+wz3AsgtfxtMwzjH1 EI/0Qdhzgj9qdaklRG6YFBiFRTDilyrdVJlkWLyEPR7/A0npHHsPjqP7qrLmweswHe2oX5cgt YGurztcEGNcBUJhuBvBxQMSZxhgr1NXflPx9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v2SyGnAk= Status: R X-Status: X-Keywords: X-UID: 7519 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{}{} > > and > > \resizebox{!}{} > > The first one resizes width and height of the original box to the provided > and 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 \box_resize_to_ht:Nn 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