From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81678 Path: news.gmane.org!not-for-mail From: Alan BRASLAU Newsgroups: gmane.comp.tex.context Subject: Re: float combinations Date: Sun, 14 Apr 2013 12:59:39 +0200 Organization: CEA DSM-IRAMIS-SPEC Message-ID: <20130414125939.7f8a46ed@iram-hb-003386.extra.cea.fr> References: <99FD7143-41D2-47F2-A95D-94752D8A513A@gmail.com> <20130413131358.38d92b7e@iram-hb-003386.extra.cea.fr> <5169E481.1040508@wxs.nl> <20130414083037.022803e0@iram-hb-003386.extra.cea.fr> <516A6F0D.3040706@wxs.nl> 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 1365937214 18960 80.91.229.3 (14 Apr 2013 11:00:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Apr 2013 11:00:14 +0000 (UTC) Cc: mailing list for ConTeXt users , blackstone.robert@gmail.com To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Sun Apr 14 13:00:17 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from [195.12.62.10] (helo=balder.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1URKfO-0005FK-BB for gctc-ntg-context-518@m.gmane.org; Sun, 14 Apr 2013 13:00:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 85509105FE; Sun, 14 Apr 2013 12:59:48 +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 TP02L1jvxeFC; Sun, 14 Apr 2013 12:59:46 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 0862C10256; Sun, 14 Apr 2013 12:59:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 14D6910256 for ; Sun, 14 Apr 2013 12:59:44 +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 UVyV9TYpvdFy for ; Sun, 14 Apr 2013 12:59:43 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 200341021C for ; Sun, 14 Apr 2013 12:59:42 +0200 (CEST) Original-Received: from cirse-out.extra.cea.fr (cirse-out.extra.cea.fr [132.167.192.142]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3EAxfnM004105 for ; Sun, 14 Apr 2013 12:59:42 +0200 Original-Received: from epeire1.extra.cea.fr (epeire1.extra.cea.fr [132.167.198.31]) by cirse.extra.cea.fr (8.14.2/8.14.2/CEAnet-Internet-out-2.3) with ESMTP id r3EAxelN030373 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 14 Apr 2013 12:59:40 +0200 Original-Received: from orpin1.extra.cea.fr (orpin1.extra.cea.fr [132.167.198.4]) by epeire1.extra.cea.fr (8.14.4/8.14.4) with ESMTP id r3EAxeDl020145; Sun, 14 Apr 2013 12:59:40 +0200 (envelope-from alan.braslau@cea.fr) Original-Received: from iram-hb-003386.extra.cea.fr (charybde.extra.cea.fr [132.166.43.102]) by orpin1.extra.cea.fr (8.13.8/8.13.8/CEAnet-Extranet-out-1.2) with ESMTP id r3EAxeqc024847; Sun, 14 Apr 2013 12:59:40 +0200 In-Reply-To: <516A6F0D.3040706@wxs.nl> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.17; amd64-portbld-freebsd9.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=132.167.192.142; country=FR; region=A3; city=Gif-sur-yvette; latitude=48.6833; longitude=2.1333; http://maps.google.com/maps?q=48.6833,2.1333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RJnKXFU7 - 803d60956e0e - 20130414 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:81678 Archived-At: On Sun, 14 Apr 2013 10:55:41 +0200 Hans Hagen wrote: > On 4/14/2013 8:30 AM, Alan BRASLAU wrote: > > Hans, you forgot to define a \testitem... > > > > \starttext > > > > \definelabel[test][text=,numberconversion=character,stopper=!] > > > > \define[1]\testitem{{#1} {\test}} > > > > \resetcounter[test] > > > > \startcombination[2*2] > > \testitem{first} > > \testitem{second} > > \testitem{third} > > \testitem{fourth} > > \stopcombination > > > > \stoptext > > > > Now, adding > > \setupcombinations [before={\resetcounter[test]}] > > would be incorrect as the counter would get reset for each row... > > sure, but then it's nice to have it as option of the combination > command > > anyway, there's also (we've always needed such things in projects): > > \starttext > > \startplacefigure[location={here,none}] > \startfloatcombination[2*2] > \placefigure{alpha}{\externalfigure[cow.pdf][width=1cm]} > \placefigure{beta} {\externalfigure[cow.pdf][width=2cm]} > \placefigure{gamma}{\externalfigure[cow.pdf][width=3cm]} > \placefigure{delta}{\externalfigure[cow.pdf][width=4cm]} > \stopfloatcombination > \stopplacefigure > > \stoptext > > as that started out as experiment and was used in specific styles it > was never documented (example from source) > > (mayb i'll add \startplacefigurecombination some day) > > Hans > Ah, more undocumented features... :) \definefloat [figureitem] [figureitems] [figure] \setupcaption [figureitem] [numberconversion=character] \startplacefigure [title=Cows] \startfloatcombination[2*2] \startplacefigureitem [title=alpha] \externalfigure [cow] [width=1cm] \stopplacefigureitem \startplacefigureitem [title=beta] \externalfigure [cow] [width=2cm] \stopplacefigureitem \startplacefigureitem [title=gamma] \externalfigure [cow] [width=3cm] \stopplacefigureitem \startplacefigureitem [title=delta] \externalfigure [cow] [width=4cm] \stopplacefigureitem \stopfloatcombination \stopplacefigure Two problems, though: 1. I tried "label=" in \setupcaption to suppress "Figure ". This does not work, and looking at the source I do not see how to do this... 2. Missing is some way to reset the figureitem counter automatically with each \startfloatcombination. It looks as if it could be a nice feature to add new keywords like "before=" and "after=". Maybe "beforeall=" and "afterall=", "beforefirst=" and "afterlast=", ... I suppose that the above brings little advantage over the \definelabel solution previously suggested. Ala -- Alan Braslau CEA DSM-IRAMIS-SPEC CNRS URA 2464 Orme des Merisiers 91191 Gif-sur-Yvette cedex FRANCE tel: +33 1 69 08 73 15 fax: +33 1 69 08 87 86 mailto:alan.braslau@cea.fr ___________________________________________________________________________________ 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 ___________________________________________________________________________________