From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/56479 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: \getfiguredimensions again in mkiv Date: Tue, 23 Feb 2010 13:17:17 -0500 (EST) Message-ID: References: <4B05BB79.7060302@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1266949062 27511 80.91.229.12 (23 Feb 2010 18:17:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2010 18:17:42 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 23 19:17:38 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NjzKC-0006dG-Dz for gctc-ntg-context-518@m.gmane.org; Tue, 23 Feb 2010 19:17:36 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A5EE2C9C24; Tue, 23 Feb 2010 19:17:35 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id nrIglOoBgVl4; Tue, 23 Feb 2010 19:17:33 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D00D6C9C12; Tue, 23 Feb 2010 19:17:32 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 10ACBC9C12 for ; Tue, 23 Feb 2010 19:17:32 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 1Jy688GD5nwj for ; Tue, 23 Feb 2010 19:17:20 +0100 (CET) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by balder.ntg.nl (Postfix) with ESMTP id 21E32C9C0E for ; Tue, 23 Feb 2010 19:17:19 +0100 (CET) Original-Received: FROM [192.168.2.8] (c-76-28-91-31.hsd1.ct.comcast.net [76.28.91.31]) By hackers.mr.itd.umich.edu ID 4B841BAE.38DF7.23288 ; Authuser adityam; 23 Feb 2010 13:17:18 EST In-Reply-To: User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:56479 Archived-At: Hi Hans, On Sat, 2 Jan 2010, Aditya Mahajan wrote: > On Thu, 19 Nov 2009, Hans Hagen wrote: > >> Aditya Mahajan wrote: >>> Hi, >>> >>> This request was lost in traffic. >>> >>> On Mon, 9 Nov 2009, Aditya Mahajan wrote: >>> >>>> Hans, >>>> >>>> Something is also wrong with getting the width and height of a figure in >>>> mkiv. Minimal example: >>>> >>>> \starttext >>>> \getfiguredimensions[filename] >>>> \figurewidth >>>> \figureheight >>>> \stoptext >>> >>> To be precise, I get 0sp 0sp as output, rather than the correct dimensions >>> of the figure. >> >> fixed in next beta > > The results in MkII and MkIV are inconsistent. Minimal example: This is still wrong. Using the following example, > \setupexternalfigures[location={local,default}] > \starttext > \getfiguredimensions[cow] > > \startlines > width: \the\dimexpr\figurewidth\relax > height: \the\dimexpr\figureheight\relax > \stoplines > \stoptext > > In MkII I get, > > width: 276.03125pt > height: 200.75pt > > In MkIV I get, > > width: 200.75pt > height: 200.75pt It appears that the dimension for width is being used for height. I could not find an obvious mistake in grph-inc. Aditya ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________