From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88006 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: Placing (numbered) figures side-by-side Date: Fri, 4 Jul 2014 17:31:33 +0200 Message-ID: References: <7818A4DB-6A52-4FF6-A863-59015F912E98@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1404487926 15004 80.91.229.3 (4 Jul 2014 15:32:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Jul 2014 15:32:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 04 17:32:00 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X35Sv-0006fJ-Tc for gctc-ntg-context-518@m.gmane.org; Fri, 04 Jul 2014 17:31:57 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 470C110294 for ; Fri, 4 Jul 2014 17:31:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id LjtABhcFgh5Y for ; Fri, 4 Jul 2014 17:31:57 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 7245710225 for ; Fri, 4 Jul 2014 17:31:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 60830101EA for ; Fri, 4 Jul 2014 17:31:45 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WW3d1GKW17hQ for ; Fri, 4 Jul 2014 17:31:40 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 4A0CB101E7 for ; Fri, 4 Jul 2014 17:31:35 +0200 (CEST) Original-Received: from mail-we0-x232.google.com (mail-we0-x232.google.com [IPv6:2a00:1450:400c:c03::232]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s64FvkOC003356 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 4 Jul 2014 17:57:46 +0200 Original-Received: by mail-we0-f178.google.com with SMTP id x48so1819472wes.23 for ; Fri, 04 Jul 2014 08:31:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=EAebS7I/lQZra02biBAkzNCRKnvNwOMLe8Nawb5hEyY=; b=DNJ4yKdu8yVSG7S5uZPzKxMoh34KmJbkQRT71sUXIudiLG8D28MaL454A5NnPiv2li D4106Y2/+zVnzbgMcfjDmVbEgpPbKTM62xKuWMCSlzELRiEC40KtOXFpNtyolSf0j5xZ U83LqLLKICQ5eAFWILoMz6/GEqYwTyqoGssr0guE6t6m4yiDbOq5wsfXv78OcSPMPDBZ CvkRbugdNLy5p2jhTPYKr+UnkofRHUL9b+YGcK5Nh4V33KprPkhxXo1tjnxmNiqtXRxA xLyWnC8zArfWgUG1q2E+AIPYqAJy4ubFLCLwxEdwKsBuDJTWL1Q1FSvl9VPdm7JQEW24 wj/Q== X-Received: by 10.194.234.42 with SMTP id ub10mr13254876wjc.42.1404487893227; Fri, 04 Jul 2014 08:31:33 -0700 (PDT) Original-Received: by 10.217.4.69 with HTTP; Fri, 4 Jul 2014 08:31:33 -0700 (PDT) In-Reply-To: <7818A4DB-6A52-4FF6-A863-59015F912E98@gmail.com> X-Bayes-Prob: 0.005 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c03::232; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01MmfVKQl - 96ff181af85f - 20140704 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:88006 Archived-At: On Fri, Jul 4, 2014 at 4:13 PM, Wolfgang Schuster wrote: > > Am 04.07.2014 um 10:21 schrieb Mojca Miklavec : > >> Hi, >> >> When placing figures side-by-side I usually use >> >> \placefigure[force][label]{}{\startcombination[2*1] >> {\externalfigure[A]}{Some description of A} >> {\externalfigure[B]}{Some description of B} >> \stopcombination} >> >> But this time I would like to get two separate figures with two separate titles: >> >> [figure] [figure] >> Figure 1.1: Long description of A Figure 1.2: Long description of B >> >> with those long descriptions being "justified" (they split in multiple >> line already), not centered. >> >> What is the best way to achieve that? > > Use the floatcombination environment. > > \useMPlibrary[dum] > > \starttext > > \startplacefigure[location=nonumber] > \startfloatcombination%[width=\textwidth,distance=0pt] > \startplacefigure[title={Some description of A}] > %\externalfigure[A][width=4cm] > \framed[frame=off,offset=none,width=.5\textwidth]{\externalfigure[A][width=4cm]} > \stopplacefigure > \startplacefigure[title={Some description of B}] > %\externalfigure[B][width=4cm] > \framed[frame=off,offset=none,width=.5\textwidth]{\externalfigure[B][width=4cm]} > \stopplacefigure > \stopfloatcombination > \stopplacefigure > > \stoptext Thank you, but there are some serious problems with the layout. I managed to find some very dirty workaround, so I can get the desired effect, but nonetheless: - titles are wider than the figure, so titles from left and right overlap; what I ended up doing was \framed[frame=off,offset=none,width=.2\textwidth]{\externalfigure[cow][width=.4\textwidth]} - titles are of different length (and have a different number of lines), so I need to manually add \crlf in one of the titles to achieve equal height and proper alignment; - width=... and distance=... are weird; once I set some width, distance only shifts the right figure outside of the page margin Mojca ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________