[NTG-context] combination + externalfigure = feature request ?

Renaud AUBIN aubin at nibua-r.org
Thu Aug 17 09:19:12 CEST 2006

Hi all,

I often use placefigure like the following example:


    {\externalfigure[robhaz-rescue]}{Rescue 2006}
    {\externalfigure[robhaz-iraq]}{Version militaire (Irak)}

As you can see, with this construct, one have to adapt the height by hand.

It's sometime boring to find a good value... As a result:
Considering two png files with w1*h1 and w2*h2, is it possible to
constrain the total width of the figure as:
1. scalefactor1*h1 = scalefactor2*h2
2. scalefactor1*w1 + scalefactor2*w2 = .8\textwidth

Two equations and two variables (scalefactor1 and scalefactor2) ? Dunno
if ConTeXt can solve this kind of calculation straightforwardly...
I assume here we're able to get wi and hi and one give an explicit
"totalwidth" value...
Moreover, one can use it for i externalfigure on a single row... but
with [N*M], it's more complicated (we can use a reference row and
proceed) and I don't need it for the moment ;)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ntg.nl/pipermail/ntg-context/attachments/20060817/7b47c77a/attachment-0001.html 

More information about the ntg-context mailing list