Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by h1439878.stratoserver.net (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id t0QCxuoi030532 for ; Mon, 26 Jan 2015 13:59:57 +0100 Received: from relay2.uni-heidelberg.de ([129.206.210.211]) by mx-ha.gmx.net (mxgmx103) with ESMTPS (Nemesis) id 0MYciU-1YAnJf2rdy-00VP7F for ; Mon, 26 Jan 2015 13:59:50 +0100 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 t0QCvmQK004445 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 26 Jan 2015 13:57:48 +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 t0QALH0Q002532; Mon, 26 Jan 2015 13:57:47 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 11517008 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 26 Jan 2015 13:57:47 +0100 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 t0QCvlHj023306 for ; Mon, 26 Jan 2015 13:57:47 +0100 Received: from mxout.hzdr.de (mxout.hzdr.de [149.220.4.85]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id t0QCvYM5004175 for ; Mon, 26 Jan 2015 13:57:37 +0100 Received: from fz-rossendorf.de (cg.fzd.de [149.220.4.64]) by mxout.hzdr.de (Postfix) with ESMTP id 2D18BBC7D for ; Mon, 26 Jan 2015 13:57:34 +0100 (CET) Received: from [149.220.65.84] (HELO fwo045.hzdr.de) by hzdr.de (CommuniGate Pro SMTP 6.0.10) with ESMTP id 10005563 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 26 Jan 2015 13:57:33 +0100 Received: by fwo045.hzdr.de (Postfix, from userid 1530) id 091BBE8049; Mon, 26 Jan 2015 13:57:13 +0100 (CET) References: <20150126095517.GA2833@hzdr.de> <54C62ADA.7090308@morningstar2.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline User-Agent: Mutt/1.5.22 (2013-10-16) X-Spam-Check-Skipped: Low on slaves (7) Message-ID: <20150126125712.GB15138@hzdr.de> Date: Mon, 26 Jan 2015 13:57:13 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Alexander Grahn Subject: Re: \box_resize_to_ht:Nn (bug report) To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <54C62ADA.7090308@morningstar2.co.uk> 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:Cs0Yo0OQdps=:/D8+fteNUZmWMCDIr4tK0t9PCE y8DhQ5NrrdZzWsej4ynPExO8v8jLvTLg+wGPxdN0PxMPE3jGO1d9VZOyDqfhcaYwYKToIIG3r H0ZjrcqeKSLin8qIvXJispZypFYfDVQEjhuH+S3qJDlBjdHhFpZqheBr7ww6nyu9R+wPveEV+ AcPp/sFb6tBaS0lciRTB5MPXXyhajkrhnJExHLeSh8M1c3251hIMbkHRuxiQ61bFMo8yig0xa 3vLb30u5nhkEX5FBSBj2N4x3fyvF7nPaG5YjmE/uK3P/lte8xHV8E6C1Esi4qbVBbdR4rv93u XFFFLRjwoUNe//DACQpXMlttrePezstIdZPCS8h1GYhtqvah0m6D/VibcctpPb9xrXT+G4SvF bOfoBoeaQ/rF3yJ8GJ390RvHn4zHegoXN7zTjuEKjSfAu8qZ82Gk5BKPXA/Wg0rpQXkDP+/LF rFEgGzJPOPet+WLFD1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CmDt0XeFXjoR7g/oQXwQGjSfYTxdVk7v4n4UE= X-UI-Out-Filterresults: notjunk:1; X-Scanned-By: MIMEDefang 2.71 on 85.214.41.38 Status: R X-Status: X-Keywords: X-UID: 7641 On Mon, Jan 26, 2015 at 11:54:02AM +0000, Joseph Wright wrote: >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? Thanks! I think there is no rush with updating expl3. Just keep with the planned schedule. >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'. In my opinion the set of \box_resize_* functions is complete, as it allows for independently resizing width and [total]height (while, if necessary, making use of \box_[wd|ht]:N for the dimension to keep unchanged), as well as for resizing one of width or [total]height with preserved aspect ratio. Thanks a lot for providing the functions! Moving them to stable is up to your decision. Kind regards, Alexander