Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by h1439878.stratoserver.net (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id t0QA0UFR026932 for ; Mon, 26 Jan 2015 11:00:31 +0100 Received: from relay.uni-heidelberg.de ([129.206.100.212]) by mx-ha.gmx.net (mxgmx112) with ESMTPS (Nemesis) id 0LoZra-1XmfR40eGQ-00gW74 for ; Mon, 26 Jan 2015 11:00:25 +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 t0Q9wWsQ007919 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 26 Jan 2015 10:58:32 +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 t0Q9tdSr026489; Mon, 26 Jan 2015 10:58:32 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 11510672 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 26 Jan 2015 10:58:32 +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 t0Q9wWaf023836 for ; Mon, 26 Jan 2015 10:58:32 +0100 Received: from mxout.hzdr.de (ix1.fz-rossendorf.de [149.220.4.85]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id t0Q9tdNs005287 for ; Mon, 26 Jan 2015 10:55:42 +0100 Received: from fz-rossendorf.de (mail.fz-rossendorf.de [149.220.4.66]) by mxout.hzdr.de (Postfix) with ESMTP id 1DE5FBC8D for ; Mon, 26 Jan 2015 10:55:39 +0100 (CET) Received: from [149.220.65.84] (HELO fwo045.hzdr.de) by hzdr.de (CommuniGate Pro SMTP 6.0.10) with ESMTP id 10760366 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 26 Jan 2015 10:55:38 +0100 Received: by fwo045.hzdr.de (Postfix, from userid 1530) id F15CCE8049; Mon, 26 Jan 2015 10:55:17 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline User-Agent: Mutt/1.5.22 (2013-10-16) Message-ID: <20150126095517.GA2833@hzdr.de> Date: Mon, 26 Jan 2015 10:55:17 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Alexander Grahn Subject: \box_resize_to_ht:Nn (bug report) To: LATEX-L@LISTSERV.UNI-HEIDELBERG.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:0Gv3q4FJ9Lo=:zXxxs4NtyXKcqJF5qJOKgfIEVR QzUHhCMOJ7wCBfrm6zZ5KfYvabrI7mWE7Npddbi2ihTp+1MdrS1oQDqiV1C02HVeTXZ5brHSc gZNL1SVkOe4M+odq58BhyNIXVFhtz2IVwoWoZdqxfX1XVS6siWrGmRfdjCCo7jIMBiw4hHucw LZPrfbCDsNSVy5zzUhP3Wgf1L5eFcbmkQ4dWzAQZFH0BpH12KuVSD4f1dgp5KORAMeoghkHH4 ily3mzyYRyjx9odCDz/ivffMy5mCo/9x5fjLv+mBLSQb68GdFDOyeC2T5w2jVFADdhzA9PHkO Qov6wsWpiV5t6o9X5uEENFBOgnak8tJv1OeTrImx/c7EMW7LFozYnKfcpWs+gYNmjiY1gePvT 5iTYc6B0VTdTUOTO7JgelcjNL2zQnm/ArL5aN/Znl1GZpNAbIW53pMUMwfHs+zfBgHyQhxxwq eO0ZlgLBv9aq9K0JatAPJZZUAfy15jovKxSvIIJGC7T8DQVCiilmEwhukaGvD6yqmaQzLNx8h dVgr+QgFoIwtcyAM/tnAsIfiKdmmSmh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anned-By: MIMEDefang 2.71 on 85.214.41.38 Status: R X-Status: X-Keywords: X-UID: 7639 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