From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72237 Path: news.gmane.org!not-for-mail From: Alan Braslau Newsgroups: gmane.comp.tex.context Subject: defineselector Date: Mon, 7 Nov 2011 16:32:51 +0100 Message-ID: <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" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1320679993 24305 80.91.229.12 (7 Nov 2011 15:33:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Nov 2011 15:33:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 07 16:33:08 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 1RNRC8-0001I9-5x for gctc-ntg-context-518@m.gmane.org; Mon, 07 Nov 2011 16:33:08 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 76840CB0C4; Mon, 7 Nov 2011 16:33:07 +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 4l-0fQtvKZAU; Mon, 7 Nov 2011 16:33:02 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 26DA3CB0BC; Mon, 7 Nov 2011 16:33:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 10E3ACB0BC for ; Mon, 7 Nov 2011 16:33:01 +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 GMg8jc0d4+hg for ; Mon, 7 Nov 2011 16:32:55 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 80A20CA680 for ; Mon, 7 Nov 2011 16:32:55 +0100 (CET) Original-Received: from oxalide-out.extra.cea.fr (oxalide-out.extra.cea.fr [132.168.224.8]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pA7FWsql003040 for ; Mon, 7 Nov 2011 16:32:55 +0100 Original-Received: from epeire2.extra.cea.fr (epeire2.extra.cea.fr [132.167.198.32]) by oxalide.extra.cea.fr (8.14.2/8.14.2/CEAnet-Internet-out-2.2) with ESMTP id pA7FWrvG010324 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 7 Nov 2011 16:32:53 +0100 Original-Received: from orpin1.extra.cea.fr (orpin1.extra.cea.fr [132.167.198.4]) by epeire2.extra.cea.fr (8.14.4/8.14.4) with ESMTP id pA7FWr6f023669 for ; Mon, 7 Nov 2011 16:32:53 +0100 (envelope-from alan.braslau@cea.fr) Original-Received: from iram-ha-003840.extra.cea.fr (iram-ha-003840.extra.cea.fr [132.166.25.152]) by orpin1.extra.cea.fr (8.13.8/8.13.8/CEAnet-Extranet-out-1.1) with ESMTP id pA7FWriJ014792 for ; Mon, 7 Nov 2011 16:32:53 +0100 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=132.168.224.8; 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: 0eFSfwSIj - 8da0cb608967 - 20111107 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:72237 Archived-At: 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? Alan ___________________________________________________________________________________ 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 ___________________________________________________________________________________