Re: [NTG-context] \getfiguredimensions again in mkiv

2010-02-23 Thread Aditya Mahajan
On Tue, 23 Feb 2010, Hans Hagen wrote: On 23-2-2010 19:17, Aditya Mahajan wrote: \setupexternalfigures[location={local,default}] \starttext \getfiguredimensions[cow] \startlines width: \the\dimexpr\figurewidth\relax height: \the\dimexpr\figureheight\relax \stoplines \stoptext hm, i get widt

Re: [NTG-context] \getfiguredimensions again in mkiv

2010-02-23 Thread Hans Hagen
On 23-2-2010 19:17, Aditya Mahajan wrote: \setupexternalfigures[location={local,default}] \starttext \getfiguredimensions[cow] \startlines width: \the\dimexpr\figurewidth\relax height: \the\dimexpr\figureheight\relax \stoplines \stoptext hm, i get width: 276.03125pt height: 200.75pt in mkiv

Re: [NTG-context] \getfiguredimensions again in mkiv

2010-02-23 Thread Aditya Mahajan
On Tue, 23 Feb 2010, Wolfgang Schuster wrote: Am 23.02.10 19:17, schrieb Aditya Mahajan: It appears that the dimension for width is being used for height. I could not find an obvious mistake in grph-inc. For unscaled images you can use \figurenaturalwidth and \figurenaturalheight. Ah, thanks

Re: [NTG-context] \getfiguredimensions again in mkiv

2010-02-23 Thread Wolfgang Schuster
Am 23.02.10 19:17, schrieb Aditya Mahajan: It appears that the dimension for width is being used for height. I could not find an obvious mistake in grph-inc. For unscaled images you can use \figurenaturalwidth and \figurenaturalheight. Wolfgang

Re: [NTG-context] \getfiguredimensions again in mkiv

2010-02-23 Thread Aditya Mahajan
On Tue, 23 Feb 2010, Aditya Mahajan wrote: 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 mean that the dimension for height is being used for width. Aditya ___

Re: [NTG-context] \getfiguredimensions again in mkiv

2010-02-23 Thread Aditya Mahajan
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 e

Re: [NTG-context] \getfiguredimensions again in mkiv

2010-01-03 Thread Hans Hagen
On 3-1-2010 3:30, Aditya Mahajan wrote: 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.

Re: [NTG-context] \getfiguredimensions again in mkiv

2010-01-02 Thread Aditya Mahajan
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] \f

Re: [NTG-context] \getfiguredimensions again in mkiv

2009-11-19 Thread Aditya Mahajan
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] \f

Re: [NTG-context] \getfiguredimensions again in mkiv

2009-11-19 Thread Hans Hagen
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 b

Re: [NTG-context] \getfiguredimensions again in mkiv

2009-11-19 Thread Aditya Mahajan
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 0s

[NTG-context] \getfiguredimensions again in mkiv

2009-11-09 Thread Aditya Mahajan
Hans, Something is also wrong with getting the width and height of a figure in mkiv. Minimal example: \starttext \getfiguredimensions[filename] \figurewidth \figureheight \stoptext Aditya ___ If your question is o