Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by h1439878.stratoserver.net (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id t0QBwnsL029328 for ; Mon, 26 Jan 2015 12:58:50 +0100 Received: from relay.uni-heidelberg.de ([129.206.100.212]) by mx-ha.gmx.net (mxgmx106) with ESMTPS (Nemesis) id 0MUD4Y-1Y6Ocj0kuQ-00Qz4r for ; Mon, 26 Jan 2015 12:58:44 +0100 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id t0QBuumE032129 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 26 Jan 2015 12:56:56 +0100 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 t0QALHKQ002532; Mon, 26 Jan 2015 12:56:56 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 11512203 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 26 Jan 2015 12:56:56 +0100 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id t0QBut0k005902 for ; Mon, 26 Jan 2015 12:56:55 +0100 Received: from smtp3.easily.co.uk (smtp3.easily.co.uk [91.194.151.18]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id t0QBs2nH030522 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 26 Jan 2015 12:54:05 +0100 Received: from [139.222.167.53] (port=51469 helo=eduroam-167-53.uea.ac.uk) by smtp3.easily.co.uk with esmtpa (Exim 4.43) id 1YFiF0-0000zc-Iu for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 26 Jan 2015 11:54:02 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 References: <20150126095517.GA2833@hzdr.de> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Message-ID: <54C62ADA.7090308@morningstar2.co.uk> Date: Mon, 26 Jan 2015 11:54:02 +0000 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: \box_resize_to_ht:Nn (bug report) To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <20150126095517.GA2833@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:EedQfhogARo=:rHFCVTwFtBUUNWdtYPhS1asFRM WAHjvKe7hy+oF0BJ7O3g1zpNXxPsIkhanV7Fa+g1/EQj3QOW6RynVtjL7HekRWPnKWAy0/hfc ApV6wRYku+lJbdN2++CwuhuWeM4V6JvPSokCpKjK+1xrcW3K1nIxRHQsZRyG6X7AGPwp9ms6y Bx8qHmRj7vzwCqPhOfp64CF/gM2KsYQLDVS+DnCfbcYsnhuxv3mj3V7Rx79bkGxvfJA9C8ECm uVVu93pBSXt6t0hv8B7kcpbioHgrkzQ1LxEGCMLkHOhwFKcfN9b7ljBmg0Xj1cnyvXCnfnbsq KuySLRZ3kjDSPA7vbMOkC2CWBbblc2dXUJI58zX9et5SGTfe71wKVZtOxeXyxWjsDoDrFABVm 0bBRlGoOdHBU30asurMBZOVgbhcutSIILlW7KWERicaXArwJfJD5bVJ7RCo4AFtBTzjWX7osZ FN0J35osdjtqi4okkLSxbgZytNndW4C0S4SWkQ7JoJPoUcGQQIkU04YGXusVeQf0+qqcve3fv GX5saJdkq58n+5rNTYALvoYmw38oaTvxpV6C9HEdMfrSSEDkP0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MIMEDefang 2.71 on 85.214.41.38 Status: R X-Status: X-Keywords: X-UID: 7640 On 26/01/2015 09:55, Alexander Grahn wrote: > Good morning, > > I have just noticed that \box_resize_to_ht:Nn forces the given box > into a square instead of scaling the width appropriately. The other, > \box_resize_to_wd:Nn works as expected as it preserves the original > aspect ratio: > > \documentclass{article} > \usepackage{expl3} > \usepackage{graphicx} > \usepackage{mwe} > > \begin{document} > \newsavebox\picbox > \savebox\picbox{\includegraphics{example-image-a}} > > \typeout{orig. size: \the\wd\picbox\space X \the\ht\picbox} > > \ExplSyntaxOn > \box_resize_to_ht:Nn\picbox{60pt} > \ExplSyntaxOff > \typeout{\string\box_resize_to_ht:Nn \the\wd\picbox\space X \the\ht\picbox} > > \savebox\picbox{\includegraphics{example-image-a}} > \ExplSyntaxOn > \box_resize_to_wd:Nn\picbox{60pt} > \ExplSyntaxOff > \typeout{\string\box_resize_to_wd:Nn \the\wd\picbox\space X \the\ht\picbox} > > \end{document} > > Kind regards, > Alexander > Logged as #202 (https://github.com/latex3/svn-mirror/issues/202). I see where the issue is: fix coming up. Is an 'urgent' release of expl3 required to deal with this? BTW, I assume that the resize functions are useful. Do the current interfaces make sense: they are down as 'experimental' but I do wonder if they should get moved to 'stable'. -- Joseph Wright