From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72241 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: defineselector Date: Mon, 07 Nov 2011 17:24:11 +0100 Message-ID: <4EB8062B.5050009@wxs.nl> References: <20111107153251.GD89076@iram-ha-003840.extra.cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1320683092 17084 80.91.229.12 (7 Nov 2011 16:24:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Nov 2011 16:24:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 07 17:24:43 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RNS02-0001Mn-TH for gctc-ntg-context-518@m.gmane.org; Mon, 07 Nov 2011 17:24:42 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D6AE1CB0C9; Mon, 7 Nov 2011 17:24:41 +0100 (CET) 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 xcplUZKPuu4t; Mon, 7 Nov 2011 17:24:39 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 55C1FCB0C5; Mon, 7 Nov 2011 17:24:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 96963CB0C5 for ; Mon, 7 Nov 2011 17:24:38 +0100 (CET) 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 w+qiK2KlevKn for ; Mon, 7 Nov 2011 17:24:27 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 9E273CB0C0 for ; Mon, 7 Nov 2011 17:24:27 +0100 (CET) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pA7GOQ3U009430 for ; Mon, 7 Nov 2011 17:24:27 +0100 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by pragma-net.nl (SurgeMail 5.3h2) with ESMTP (TLS) id 3757-1713362 for multiple; Mon, 07 Nov 2011 17:24:18 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 In-Reply-To: <20111107153251.GD89076@iram-ha-003840.extra.cea.fr> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=11; city=Den Haag; latitude=52.0833; longitude=4.3000; http://maps.google.com/maps?q=52.0833,4.3000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0cFSgoq7F - e05a8bc0ba6c - 20111107 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:72241 Archived-At: On 7-11-2011 16:32, Alan Braslau wrote: > Hi, > > One can select between short and long figure captions > (for an index of figures and the figure display itself, respectively) > using a selector. The syntax is: > > > \defineselector [caption] [max=2,n=2] % alternate {short}{long} captions > > \starttext > > \placefigure [here] [fig:reference] > {\select{caption} > {short caption} > {long caption: bla, bla, bla.} > } > {\externalfigure [myfigure]} > > .... > > > \startchapter [title={Figure index}] > \setupselector [caption] [n=1] > \placelistoffigures [criterium=all] > \stopchapter > > \stoptext > > > > > I find "\select{caption}" to be awkward > as the label caption is not typeset > (the convention of text between {}). > > Should not the syntax be rather "\select[caption]{short}{long}" > or else "\selectcaption{short}{long}"? > > What do the experts think? this one had to think a while to recognize the mkii selector mechanism in mkiv we do \starttext \startplacefigure[location=here,reference=fig:reference,title={lots of bla},list={less bla}] \externalfigure [myfigure] \stopplacefigure \startchapter [title={Figure index}] \placelistoffigures [criterium=all] \stopchapter \stoptext but i saw that i don't pass the list entry ... will be in the next beta Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________