Re: [NTG-context] factor=fit images don't fit

2007-07-24 Thread Giuseppe Bilotta
Monday, July 23, 2007 luigi scarso wrote: the fit assumes operating on a page not in a box; an alternative is: \framed[width=5cm,height4cm] {\externalfigure[mill.png][maxwidth=4cm,maxheight=5cm,width=10cm]} i.e. setting the maximum values hmm, \frame can be slow. Maybe something

Re: [NTG-context] factor=fit images don't fit

2007-07-24 Thread Giuseppe Bilotta
Sunday, July 22, 2007 Hans Hagen wrote: the fit assumes operating on a page not in a box; Ah, didn't know that. I couldn't even tell from the sources, since it uses enclosing box dimensions and not page or paper sizes. I suspect the logic is broken at the page level too though, let me explain

Re: [NTG-context] factor=fit images don't fit

2007-07-24 Thread Hans Hagen
Giuseppe Bilotta wrote: I hadn't thought about using width and maxwidth (and maxheight) at the same time, thanks. Of course, I'd rather have 'fit' and 'max' usable in boxes :) sure, i'll redo that part anyway, since in luatex we can calculate in lua instead of tex which is more convenient

Re: [NTG-context] factor=fit images don't fit

2007-07-22 Thread Giuseppe Bilotta
Saturday, July 21, 2007 Brian R. Landy wrote: Hi, What version of ConTeXt are you using? I just noticed a difference a few days ago between the version installed by TeXLive 2007 and the April 2007 release (tested locally through contextgarden) placing an image into a natural table, using

Re: [NTG-context] factor=fit images don't fit

2007-07-22 Thread Hans Hagen
Giuseppe Bilotta wrote: Friday, July 20, 2007 Giuseppe Bilotta wrote: Hello all, I have to place a number of images into some given-size frames in a layer. The images should be scaled proportionally to fit into the frame. The code I'm working with is: \defineframed[framedimg][

Re: [NTG-context] factor=fit images don't fit

2007-07-21 Thread Brian R. Landy
Hi, What version of ConTeXt are you using? I just noticed a difference a few days ago between the version installed by TeXLive 2007 and the April 2007 release (tested locally through contextgarden) placing an image into a natural table, using factor=max. I'll post an example in a

Re: [NTG-context] factor=fit images don't fit

2007-07-20 Thread Giuseppe Bilotta
Friday, July 20, 2007 Giuseppe Bilotta wrote: Hello all, I have to place a number of images into some given-size frames in a layer. The images should be scaled proportionally to fit into the frame. The code I'm working with is: \defineframed[framedimg][ frame=on,framecolor=elux,

[NTG-context] factor=fit images don't fit

2007-07-19 Thread Giuseppe Bilotta
Hello all, I have to place a number of images into some given-size frames in a layer. The images should be scaled proportionally to fit into the frame. The code I'm working with is: \defineframed[framedimg][ frame=on,framecolor=elux, background=color, backgroundcolor=white, width=\wdfig,