From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/104708 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Luca Mauri Newsgroups: gmane.comp.tex.context Subject: Re: Figure labels in combinations Date: Tue, 30 Jul 2019 18:32:46 +0200 Message-ID: <327ED687-9DBF-4DE2-82EF-EB56F0F9806A@getmailspring.com> References: <20190730085227.52ea3885@poo.hsd1.co.comcast.net> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4986418155961745836==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="155198"; mail-complaints-to="usenet@blaine.gmane.org" Cc: mailing list for ConTeXt users To: Alan Braslau Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 30 18:38:14 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hsV8g-000eFn-SA for gctc-ntg-context-518@m.gmane.org; Tue, 30 Jul 2019 18:38:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EADCC152FA0; Tue, 30 Jul 2019 18:37:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b0huI8JGPkir; Tue, 30 Jul 2019 18:37:58 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 10358152F9E; Tue, 30 Jul 2019 18:37:58 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A9B2B152F9E for ; Tue, 30 Jul 2019 18:37:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZcAEC__V98J8 for ; Tue, 30 Jul 2019 18:37:55 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=212.227.15.18; helo=mout.gmx.net; envelope-from=luca.mauri@gmx.com; receiver= X-Greylist: delayed 303 seconds by postgrey-1.36 at zapf.ntg.nl; Tue, 30 Jul 2019 18:37:55 CEST Original-Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 6C5B9152C33 for ; Tue, 30 Jul 2019 18:37:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1564504675; bh=MeFF4721FSWxzAqvai2fmH2mPiL8bKiquXlf3AdL410=; h=X-UI-Sender-Class:Date:From:To:Cc:In-Reply-To:References:Subject; b=hGBbr3ZpVjFQOokn0uz473Vtu7524l6vzkdx6bahpd/awckigAloc96dRA15TNYWg 72rcbFLW8YQhHZvcuxsyvFMHYtuoLl6l1/kOskcXmvIvOP1bQXRdsMKpsG+R+qn1p/ bX8IAeg2gl/65OAMwxCOZYhWNX5ySICSguoHZOBI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from hydra ([82.63.56.102]) by mail.gmx.com (mrgmx001 [212.227.17.184]) with ESMTPSA (Nemesis) id 0LaGJa-1ieSuX3Tos-00m5Ac; Tue, 30 Jul 2019 18:32:47 +0200 In-Reply-To: <20190730085227.52ea3885@poo.hsd1.co.comcast.net> X-Mailer: Mailspring X-Provags-ID: V03:K1:oEiPGio+eGXJC5vD4cQKdv5pNhTt+Fri06iats6gjZeT5sLKhL7 vbHoJRrG6nlKs3WPvuSOSsbsB2ssAzeOPTVOU4G5uR9FNbA/4izLOE7/0YflSaL4y8taGsa s6rpSkVltI7MKu5DZlvbEHSvyka4hD2RsGVKAgp+xe1JbjAqHcR2oOKuCnKxeBlaHDnF+7K z1qxxpI37Q2KDqf2A5C1g== X-UI-Out-Filterresults: notjunk:1;V03:K0:tu+A/YuUrqA=:vwgg/P1OkmtXW/GvPje4ly aH8Wk5N+x4B0nOchzWvhVgF2d7Hjy570dBjyzg9v6aUAWoYZjgM7qoAMiypjSB9etV3ov4lBn sxc4e0G9mPZcHBUeWz6jxguMJA6nUSCEsjrDAGiYJmsqExTmbxIsKM9o3A44MHrpbcnmeesJW zhpYTx/iKMTe4VOjHZvvioJEA5LKJ/NJTxU03vKR1SxIJMhm0PiGP/9tYnMeN6yw2cdWJxpLn GHb2H3cS2VG7c5AJAC0+DgbFNrlyRErObp86fiulLOLoWjkmHD826FDQyc/x9Lvzi9xL9YQh1 jYkCbdN1rCY/X97Q3yndWscxFQlxendM+U5FWONZ8eSWo1RTzwhiVjp15whoU4k7b/Kjte8TT S/YZP5Sb4RWzIp6DVO3hb4O8E09eJRBwomLWtCrN0ve36KRVZi1MXmEVdv880Lk74/H/9FOVt GT5j7ybzhQJmQTa+yRD6+JnIwN4W2tYpOU3d2nsKeREqPd5mCjX43X+gdyFAW/63EDOZgl4CB 3vyiMqyg2eyGGMGmQDSeuI/rPyWpeYJIkYxTwFWgSvh0LprHD/sH1EvqtNy3iSOaELf9IZN2u DD0xhaMh2PUJqb5hVbeoapVaMwNaAls92o/w9YmYJDUHUbfSxqhDP37dzm25joT6CAytqDzvK VaGiCkokCDYxX27pgDXmu9XMiC8QEcbYhDwIuBBEaRdXluJyAEpR8VMEQI0OZYYVKyt70E8k9 wT7h47D/8K24C1HlcNZwlmjAPsGidCIcjfcOGmySC174WkHQbLs4RLNFrJXR2fj5A3gk732H X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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" Xref: news.gmane.org gmane.comp.tex.context:104708 Archived-At: --===============4986418155961745836== Content-Type: multipart/alternative; boundary="5d40712e_43c4de49_4110" --5d40712e_43c4de49_4110 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Thank you Alan. Yes, I have seen the possibility of generating automatically the labels but unfortunately the problem remains when you move the subfigure. In the meantime, I have tried this: \startplacefigure [number=no] \startcombination [nx=3] {figure 1} {\incrementcounter[figure]\textreference[pic1]{\getnumber[figure]}\in[pic1]} {figure 2} {...similar...} {figure 3} {...similar...} \stopcombination \stopplacefigure and then \in[pic1] in the body of the text, which looked very promising; the trouble is that for some reason that i do not understand, the \in[pic1] in the label of the picture works ok, but anywhere else in the text, either before of after the placefigure environment, it generates a reference to the last picture produced, that is pic3 after and pic0, say, before. I though it was aproblem of expanding the figure counter and added \expanded either before \getnumber of \textreference, but with no luck... Luca On Jul 30 2019, at 4:52 pm, Alan Braslau wrote: > On Tue, 30 Jul 2019 11:20:03 +0200 > Luca Mauri wrote: > > > I am trying to typeset two or more figures next to each other, inside a floating environment, each with its own label. I am familiar with a mechanism of the form > > \startplacefigure[reference=pic] > > \startcombination[3*1] > > {figure 1}{a} > > {figure 2}{b} > > {figure 3}{c} > > \stopcombination > > \stopplacefigure > > > This does not answer your question, but do you know about: > \startplacefigure > \startcombination [nx=3,alternative=label] > {figure 1} > {figure 2} > {figure 3} > \stopcombination > \stopplacefigure > > Alan --5d40712e_43c4de49_4110 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Thank you Alan. Yes, I have seen the possibility of generating autom= atically the labels but unfortunately the problem remains when you move t= he subfigure. In the meantime, I have tried this:

=5Cstartp= lacefigure =5Bnumber=3Dno=5D
=5Cstartcombination =5Bnx=3D3=5D <= /div>
=7Bfigure 1=7D =7B=5Cincrementcounter=5Bfigure=5D=5Ctextreferen= ce=5Bpic1=5D=7B=5Cgetnumber=5Bfigure=5D=7D=5Cin=5Bpic1=5D=7D
=7B= figure 2=7D =7B...similar...=7D
=7Bfigure 3=7D =7B...similar...= =7D
=5Cstopcombination
=5Cstopplacefigure

=
and then

=5Cin=5Bpic1=5D

in the body of= the text, which looked very promising; the trouble is that for some reas= on that i do not understand, the =5Cin=5Bpic1=5D in the label of the pict= ure works ok, but anywhere else in the text, either before of after the p= lacefigure environment,  it generates a reference to the last pictur= e produced, that is pic3 after and pic0, say, before. I though it was apr= oblem of expanding the figure counter and added =5Cexpanded either before= =5Cgetnumber of =5Ctextreference, but with no luck...
Luca
On Jul 30 2019, at 4:52= pm, Alan Braslau <braslau.list=40comcast.net> wrote:
On Tue, 30 Jul 2019 11:20:03 +0200
Luca Mauri <= ;luca.mauri=40gmx.com> wrote:

I am trying to= typeset two or more figures next to each other, inside a floating enviro= nment, each with its own label. I am familiar with a mechanism of the for= m

=5Cstartplacefigure=5Breference=3Dpic=5D
=5Csta= rtcombination=5B3*1=5D
=7Bfigure 1=7D=7Ba=7D
=7Bfigur= e 2=7D=7Bb=7D
=7Bfigure 3=7D=7Bc=7D
=5Cstopcombinatio= n
=5Cstopplacefigure

This does not a= nswer your question, but do you know about:

=5Cstartplacefi= gure
=5Cstartcombination =5Bnx=3D3,alternative=3Dlabel=5D
=
=7Bfigure 1=7D
=7Bfigure 2=7D
=7Bfigure 3=7D
=5Cstopcombination
=5Cstopplacefigure

Alan=
--5d40712e_43c4de49_4110-- --===============4986418155961745836== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============4986418155961745836==--