From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66461 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Stefan_M=FCller?= Newsgroups: gmane.comp.tex.context Subject: Re: references Date: Mon, 28 Feb 2011 16:08:09 +0100 Message-ID: <4D6BBA59.1050105@gmx.de> References: <4D55719B.4040901@wxs.nl> 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 1298905749 24373 80.91.229.12 (28 Feb 2011 15:09:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 Feb 2011 15:09:09 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 28 16:09:05 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 1Pu4id-000335-Bo for gctc-ntg-context-518@m.gmane.org; Mon, 28 Feb 2011 16:09:03 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ACA1ECAA75; Mon, 28 Feb 2011 16:09:02 +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 te6FntEdFH3K; Mon, 28 Feb 2011 16:08:50 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 71756CAA6B; Mon, 28 Feb 2011 16:08:50 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9A693CAA6B for ; Mon, 28 Feb 2011 16:08:48 +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 s3vnvlWL6017 for ; Mon, 28 Feb 2011 16:08:28 +0100 (CET) Original-Received: from filter5-ams.mf.surf.net (filter5-ams.mf.surf.net [192.87.102.73]) by balder.ntg.nl (Postfix) with ESMTP id 9D3BEC9A7C for ; Mon, 28 Feb 2011 16:08:28 +0100 (CET) Original-Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by filter5-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with SMTP id p1SF8RHt007112 for ; Mon, 28 Feb 2011 16:08:28 +0100 Original-Received: (qmail invoked by alias); 28 Feb 2011 15:08:27 -0000 Original-Received: from 77-64-135-9.dynamic.primacom.net (EHLO [192.168.100.108]) [77.64.135.9] by mail.gmx.net (mp067) with SMTP; 28 Feb 2011 16:08:27 +0100 X-Authenticated: #11064435 X-Provags-ID: V01U2FsdGVkX19Ul9M2holUBw0TTjfBtaApXwGPOx1tgjsxvA/6e1 C4185mhx5Jpt/v User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 In-Reply-To: <4D55719B.4040901@wxs.nl> X-Y-GMX-Trusted: 0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.165.64.23; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0BEdr8rW8 - 4d25c10609f4 - 20110228 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.73 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:66461 Archived-At: Hi, I think it could be useful to be able to "reuse" the label text setups elsewhere, too. I have for example \definereferenceformat[inexp][label=example] \setuplabeltext[en][example=example~] in one of my documents. Why not specify this label when defining an enumeration "example": \defineenumeration[example][label=example] This way I could easily use several languages in parallel with one setup. The first letter should probably be capitalized in the enumeration label... Stefan. On 11.02.2011 18:27, Hans Hagen wrote: > Hi, > > I uploaded a beta. New: > > - Improved \textxt behaviour (for Mojca's code). > - Korean labels and index tagging (with help from Jeong Dalyoung). > - Cleaned of referencing (formats). > > \setupinteraction[state=start] > > \startbuffer[definitions] > \definereferenceformat [PageOne] [left=(,right=),text=sometext] > \definereferenceformat [PageTwo] [label=page] > \definereferenceformat [PageThree] [label=*] > \definereferenceformat [PageFour] [label=both] > > \setuplabeltext[en][page=page~] > \setuplabeltext[en][chapter=chapter~] > \setuplabeltext[en][both={chapter~,~retpahc}] > \stopbuffer > > \getbuffer[definitions] > > \starttext > > \chapter[one]{One} > > \typebuffer[definitions] > > \startbuffer > \PageOne[two] > \PageTwo[two] > \PageThree[two] > \PageFour[two] > \at{(}{)}[two] > \at{!}[two] > \at{page}[two] > <<\at[two]>> > \stopbuffer > > \typebuffer \startlines \getbuffer \stoplines > > \chapter[two]{Two} > > \typebuffer[definitions] > > \startbuffer > \PageOne[one] > \PageTwo[one] > \PageThree[one] > \PageFour[one] > \at{(}{)}[one] > \at{!}[one] > \at{page}[one] > <<\at[one]>> > \stopbuffer > > \typebuffer \startlines \getbuffer \stoplines > > \stoptext > ___________________________________________________________________________________ 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 ___________________________________________________________________________________