From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30357 Path: news.gmane.org!not-for-mail From: Renaud AUBIN Newsgroups: gmane.comp.tex.context Subject: combination + externalfigure = feature request ? Date: Thu, 17 Aug 2006 09:19:12 +0200 Message-ID: <44E41870.60100@nibua-r.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1394699586==" X-Trace: sea.gmane.org 1155799182 18920 80.91.229.2 (17 Aug 2006 07:19:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 17 Aug 2006 07:19:42 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 17 09:19:39 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GDcAE-0000CU-5H for gctc-ntg-context-518@m.gmane.org; Thu, 17 Aug 2006 09:19:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2177C1FE96; Thu, 17 Aug 2006 09:19:37 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27424-03; Thu, 17 Aug 2006 09:19:31 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F2EBE1FE85; Thu, 17 Aug 2006 09:19:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ECF6B1FE85 for ; Thu, 17 Aug 2006 09:19:26 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26484-05 for ; Thu, 17 Aug 2006 09:19:21 +0200 (CEST) Original-Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by ronja.ntg.nl (Postfix) with SMTP id 1BABA1FE6F for ; Thu, 17 Aug 2006 09:19:20 +0200 (CEST) Original-Received: (qmail 23351 invoked by uid 503); 17 Aug 2006 07:19:24 -0000 Original-Received: (QMFILT: 1.0); 17 Aug 2006 07:19:24 -0000 Original-Received: from b6.ovh.net (HELO mail157.ha.ovh.net) (213.186.33.56) by 26.mail-out.ovh.net with SMTP; 17 Aug 2006 07:19:24 -0000 Original-Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 17 Aug 2006 07:19:21 -0000 Original-Received: from d213-103-249-106.cust.tele2.fr (HELO ?192.168.78.10?) (aubin@nibua-r.org@213.103.249.106) by ns0.ovh.net with SMTP; 17 Aug 2006 07:19:20 -0000 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: fr, en Original-To: ConTeXt Mailing List X-Ovh-Remote: 213.103.249.106 (d213-103-249-106.cust.tele2.fr) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|H 0.500048/0.5/5.0/N X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:30357 Archived-At: This is a multi-part message in MIME format. --===============1394699586== Content-Type: multipart/alternative; boundary="------------010406060009000602040703" This is a multi-part message in MIME format. --------------010406060009000602040703 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 --------------010406060009000602040703 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
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
--------------010406060009000602040703-- --===============1394699586== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============1394699586==--