ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* combination + externalfigure = feature request ?
@ 2006-08-17  7:19 Renaud AUBIN
  0 siblings, 0 replies; only message in thread
From: Renaud AUBIN @ 2006-08-17  7:19 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 1173 bytes --]


Hi all,

I often use placefigure like the following example:

\useexternalfigure[robhaz-iraq][src/images/robhaz_iraq_06][height=4cm]
\useexternalfigure[robhaz-rescue][src/images/robhaz_rescue_06][height=4cm]

\placefigure[here][fig:robhaz]{ROBHAZ-DT3}{
  \startcombination[2*1]
    {\externalfigure[robhaz-rescue]}{Rescue 2006}
    {\externalfigure[robhaz-iraq]}{Version militaire (Irak)}
  \stopcombination
}

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 ;)

Cheers,

Renaud

[-- Attachment #1.2: Type: text/html, Size: 1629 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-08-17  7:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-17  7:19 combination + externalfigure = feature request ? Renaud AUBIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).