From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59938 Path: news.gmane.org!not-for-mail From: Alan BRASLAU Newsgroups: gmane.comp.tex.context Subject: Re: nomarking function in MKIV (selector) Date: Wed, 30 Jun 2010 12:03:30 +0200 Organization: CEA DSM-IRAMIS-SPEC Message-ID: <201006301203.30358.alan.braslau@cea.fr> References: <87iq516cjj.fsf@devereux.me.uk> <201006301019.23763.alan.braslau@cea.fr> <20100630090357.GA30697@gaston.couberia.bzh> 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 1277892232 29494 80.91.229.12 (30 Jun 2010 10:03:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Jun 2010 10:03:52 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 30 12:03:51 2010 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 1OTu90-0003Nx-Pn for gctc-ntg-context-518@m.gmane.org; Wed, 30 Jun 2010 12:03:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F1C21C9B35; Wed, 30 Jun 2010 12:03:49 +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 n4B5A2oLhDQW; Wed, 30 Jun 2010 12:03:49 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 62B4AC9ADD; Wed, 30 Jun 2010 12:03:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B93B8C9ADD for ; Wed, 30 Jun 2010 12:03: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 OGsMxEN2Da3c for ; Wed, 30 Jun 2010 12:03:43 +0200 (CEST) Original-Received: from sainfoin-out.extra.cea.fr (sainfoin-out.extra.cea.fr [132.166.172.107]) by balder.ntg.nl (Postfix) with ESMTP id 65B99C9AC7 for ; Wed, 30 Jun 2010 12:03:43 +0200 (CEST) Original-Received: from epeire2.extra.cea.fr (epeire2.extra.cea.fr [132.167.198.32]) by sainfoin.extra.cea.fr (8.14.2/8.14.2/CEAnet-Internet-out-2.0) with ESMTP id o5UA3g4U002529 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 30 Jun 2010 12:03:43 +0200 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 o5UA3gdE012731 for ; Wed, 30 Jun 2010 12:03:42 +0200 (envelope-from alan.braslau@cea.fr) Original-Received: from iram-ha-003840.localnet (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 o5UA3gdW031101 for ; Wed, 30 Jun 2010 12:03:42 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.32; KDE/4.4.4; x86_64; ; ) In-Reply-To: <20100630090357.GA30697@gaston.couberia.bzh> 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:59938 Archived-At: On nomarking functionality in MKIV: I manage short/long figure captions using a selector: ------------------------------------------------------------------------ \defineselector [caption] [max=2,n=2] % alternate {short}{long} captions ... \placefigure [here] [fig:reference] {\select{caption} {short} {long} } {figure} ... \chapter{Liste des figures} \start \setupselector [caption] [n=1] \placelistoffigures [criterium=all] \stop ------------------------------------------------------------------------ Similarly to \startchapter [title=long,list=short] could we have: \placefigure [here] [fig:reference] [caption={long},list={short}] {figure} Could this coexist with the current syntax: \placefigure [here] [fig:reference] {caption} {figure} Alan By the way, \select{caption} does not follow the general syntax rule whereas metadata is contained between [] and text to be typeset between {} One should thus rather have \select [caption] {short} {long} or even \selectcaption {short} {long} to be coherent. ___________________________________________________________________________________ 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 ___________________________________________________________________________________