From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71294 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: caption labels Date: Sat, 24 Sep 2011 18:31:59 +0200 Message-ID: <2C645B60-5ED4-412A-8035-DD06951810B3@googlemail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1316881949 18467 80.91.229.12 (24 Sep 2011 16:32:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 24 Sep 2011 16:32:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 24 18:32:25 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 1R7V9L-0003hs-Vb for gctc-ntg-context-518@m.gmane.org; Sat, 24 Sep 2011 18:32:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 13D28CAFC5; Sat, 24 Sep 2011 18:32:23 +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 U8O8b-N4XIqg; Sat, 24 Sep 2011 18:32:19 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 00D10CAFB7; Sat, 24 Sep 2011 18:32:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D22D2CAFB7 for ; Sat, 24 Sep 2011 18:32:17 +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 ZA-mZ4RAAKpX for ; Sat, 24 Sep 2011 18:32:15 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id AEE73CAF37 for ; Sat, 24 Sep 2011 18:32:15 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p8OGWDuY023188 for ; Sat, 24 Sep 2011 18:32:15 +0200 Original-Received: by fxh17 with SMTP id 17so6169182fxh.14 for ; Sat, 24 Sep 2011 09:32:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=kBpXjyK1WkNScUrDOohjl72db4UdA3KxYQsT8IIAChE=; b=Zxmpz4x6tsI6vlA4dDcxefsPTgOTUsS9t8MSeYSXyIZwv+3btSNAVNdnB40vroBz80 DjqKwx1BcHXdUsCOKhMCOAQNE4rdIJkIC4upxLfJINWWbnRcFf/QDuwqtYPM7oKJYD0Q vw5wDvotfq5X4KVKbsW6FABzk2ECxnwV6MyFc= Original-Received: by 10.223.4.133 with SMTP id 5mr7350999far.81.1316881932896; Sat, 24 Sep 2011 09:32:12 -0700 (PDT) Original-Received: from [192.168.2.31] (p5482C516.dip.t-dialin.net. [84.130.197.22]) by mx.google.com with ESMTPS id w14sm14673868fae.13.2011.09.24.09.32.07 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 24 Sep 2011 09:32:11 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1244.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05FAEwd08 - b3bc716bd005 - 20110924 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:71294 Archived-At: Am 24.09.2011 um 13:27 schrieb Felix Ingram: >> Am 23.09.2011 um 12:45 schrieb Felix Ingram: >> = >>>>> I'm defining a new float that I'd like to caption with its own label. >>>>> Something like: >>>>> = >>>>> \definefloat[picture][pictures] >>>>> = >>>>> I'd then like the caption to read: >>>>> = >>>>> Picture 1 - my caption text >>>>> Picture 2 - etc >>>>> = >>>>> At the moment I've used \setupcaption[picture][way=3Dbytext] to sort = out >>>>> the numbering but I cannot figure out how to do the label. >>>> = >>>> \setupcaption[picture][way=3Dbytext,label=3DPicture] does the trick >>> = >>> This doesn't work for me. Setupcaption doesn't appear to support a >>> label option (MKIV and assuming I'm looking at the correct source >>> file=85) >> = >> Use =93\setuplabeltext[picture=3DPicture ]=94. >> = >> Wolfgang > = > Firstly, thanks for the reply. Secondly, apologies again for not > supplying a minimal example - this would have helped me track down > what's causing my issue. > = > = > \mainlanguage[en-gb] %% Remove me for labels > %\mainlanguage[en] %% or use me instead > = > \definefloat[picture][pictures] % Define our fancy boxout > \starttext > \placepicture{This is my caption}{Some float text} > \stoptext > = > = > The above will fail to generate a caption. Removing the \mainlanguage > command will cause the label to appear as expected. Using > \setuplabeltext[en-gb][picture=3DPicture ] will fail to work. Changing > the main language to 'en' or 'nl' will cause the label to reappear. > = > I'll change the main language to 'en' for the time being. Use can use =93\setuplabeltext[en][picture=3DPicture ]=94 to set a label fo= r =93en-gb=94. Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________