From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55437 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: \getfiguredimensions again in mkiv Date: Sat, 2 Jan 2010 21:30:46 -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: ger.gmane.org 1262485876 22237 80.91.229.12 (3 Jan 2010 02:31:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Jan 2010 02:31:16 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 03 03:31:08 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.50) id 1NRGFI-0006fz-P1 for gctc-ntg-context-518@m.gmane.org; Sun, 03 Jan 2010 03:31:08 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3E75AC9BB3; Sun, 3 Jan 2010 03:31:08 +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 REwEoqQp-XsT; Sun, 3 Jan 2010 03:30:56 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BE39EC9BA6; Sun, 3 Jan 2010 03:30:56 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3EA77C9BA6 for ; Sun, 3 Jan 2010 03:30:55 +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 q8g2tLwY8k5C for ; Sun, 3 Jan 2010 03:30:52 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by balder.ntg.nl (Postfix) with ESMTP id 37A0FC9AB7 for ; Sun, 3 Jan 2010 03:30:51 +0100 (CET) Original-Received: FROM [192.168.2.8] (c-76-28-91-31.hsd1.ct.comcast.net [76.28.91.31]) By tombraider.mr.itd.umich.edu ID 4B40015A.3A113.24968 ; Authuser adityam; 2 Jan 2010 21:30:50 EST In-Reply-To: <4B05BB79.7060302@wxs.nl> 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:55437 Archived-At: 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: \setupexternalfigures[location={local,default}] \starttext \getfiguredimensions[cow] \startlines width: \figurewidth height:\figureheight \stoplines \stoptext In MkII I get, width: 276.03125pt height: 200.75pt In MkIV I get, width: 7592528sp height: 5694396sp which translates to (why doesn't MkIV use pt as units?) width:115.85pt height:86.889pt I don't know if this is a bug in grph-inc.lua or in luatex. 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 ___________________________________________________________________________________