Re: [NTG-context] Access figure data?

2010-10-15 Thread Peter Rolf
Am 15.10.2010 07:16, schrieb Peter Münster: On Thu, Oct 14 2010, Peter Rolf wrote: Nice to have. Is this also possible from the lua side? Hello, Perhaps with the img library of luatex (see luatex manual). Thanks Peter! Stupid me haven't thought about the luatex manual. local f =

[NTG-context] Access figure data?

2010-10-14 Thread Brian Wedde
Is there any way to get access to the data about external figures? I would like to know the pixel height/width of the actual image. [I am trying to typeset a mass of html-based documents with images using a series of scripts. The images need to be positioned somewhat like they would be on the

Re: [NTG-context] Access figure data?

2010-10-14 Thread Hans Hagen
On 14-10-2010 8:10, Brian Wedde wrote: Is there any way to get access to the data about external figures? I would like to know the pixel height/width of the actual image. [I am trying to typeset a mass of html-based documents with images using a series of scripts. The images need to be

Re: [NTG-context] Access figure data?

2010-10-14 Thread Aditya Mahajan
On Thu, 14 Oct 2010, Brian Wedde wrote: Is there any way to get access to the data about external figures? I would like to know the pixel height/width of the actual image. From one of my private modules: \useexternalfigure[cnp:name][\cut!n!paste!parameter\c!name]% Is this really

Re: [NTG-context] Access figure data?

2010-10-14 Thread Hans Hagen
On 14-10-2010 8:10, Brian Wedde wrote: Is there any way to get access to the data about external figures? I would like to know the pixel height/width of the actual image. [I am trying to typeset a mass of html-based documents with images using a series of scripts. The images need to be

Re: [NTG-context] Access figure data?

2010-10-14 Thread Peter Rolf
Am 14.10.2010 21:33, schrieb Hans Hagen: On 14-10-2010 8:10, Brian Wedde wrote: Is there any way to get access to the data about external figures? I would like to know the pixel height/width of the actual image. [I am trying to typeset a mass of html-based documents with images using a

Re: [NTG-context] Access figure data?

2010-10-14 Thread Hans Hagen
On 14-10-2010 10:10, Peter Rolf wrote: Nice to have. Is this also possible from the lua side? I ask, because I need the pixel size of a graphic for some border checking ('clip' a frame out of a bitmap). Currently I use \getfiguredimensions from the tex side, as I haven't found a way in lua yet.

Re: [NTG-context] Access figure data?

2010-10-14 Thread Peter Rolf
Am 14.10.2010 22:22, schrieb Hans Hagen: On 14-10-2010 10:10, Peter Rolf wrote: Nice to have. Is this also possible from the lua side? I ask, because I need the pixel size of a graphic for some border checking ('clip' a frame out of a bitmap). Currently I use \getfiguredimensions from the

Re: [NTG-context] Access figure data?

2010-10-14 Thread Peter Münster
On Thu, Oct 14 2010, Peter Rolf wrote: Nice to have. Is this also possible from the lua side? Hello, Perhaps with the img library of luatex (see luatex manual). Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/