From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66594 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: One-off theorem titles Date: Thu, 3 Mar 2011 15:18:58 +0100 Message-ID: <48CEA267-A4E3-4DA4-B26A-3F64389B2C10@gmail.com> References: <4D6F4BC0.4090106@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299161984 28349 80.91.229.12 (3 Mar 2011 14:19:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Mar 2011 14:19:44 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 03 15:19:35 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 1Pv9NO-0000OX-KI for gctc-ntg-context-518@m.gmane.org; Thu, 03 Mar 2011 15:19:34 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1CDD9CAA93; Thu, 3 Mar 2011 15:19:34 +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 RhbZgSj1qKUI; Thu, 3 Mar 2011 15:19:19 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DF426CAAA0; Thu, 3 Mar 2011 15:19:18 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1D6B8CAAA0 for ; Thu, 3 Mar 2011 15:19:17 +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 lDYqBz1qfsKD for ; Thu, 3 Mar 2011 15:19:02 +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 CCA80CAA9A for ; Thu, 3 Mar 2011 15:19:02 +0100 (CET) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p23EJ2hi004802 for ; Thu, 3 Mar 2011 15:19:02 +0100 Original-Received: by fxm5 with SMTP id 5so1472726fxm.14 for ; Thu, 03 Mar 2011 06:19:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=Zo+kUVbd+bY2mUqd7MnAqv45q9JERYZOKJJhpehww+E=; b=D8OhvI5zWuWn3suPwredynZAFUefgddHX+m6RJHmdTOo0P/Qmx+yKtyRpO5S6XaELP ewXyPr79sEcaea3WoroJpckJLUkmggjI2vu1xKJEg+nWCslBLCxgQ3BLtzwjmRypF9vh iiom71MA90CnNNTfGkZ2qdrokVCY72+l3nv8k= DomainKey-Signature: a=rsa-sha1; c=nofws; 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; b=kicStWbEbDeQ4ylkbp5eg5wafEKdY+rdKBe4xrMdrcKK5Ki/42tk5HCdGFcY4Ow92N r5D4FnGwVZHvUIy4+UO73LApa2jZvq8ipTIQIl88AOVUQq3nFZVg98PanIz1REC2t0fq uh6J2Xye1TIB9mtC2dWDzohFf2twyhdX2ImyI= Original-Received: by 10.223.112.79 with SMTP id v15mr1496291fap.143.1299161941943; Thu, 03 Mar 2011 06:19:01 -0800 (PST) Original-Received: from [192.168.2.23] (p5B29430D.dip.t-dialin.net [91.41.67.13]) by mx.google.com with ESMTPS id f24sm597484fak.0.2011.03.03.06.18.59 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 Mar 2011 06:19:00 -0800 (PST) In-Reply-To: <4D6F4BC0.4090106@googlemail.com> X-Mailer: Apple Mail (2.1082) 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: 0eEeCj2rv - 9270796a31a0 - 20110303 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:66594 Archived-At: Am 03.03.2011 um 09:05 schrieb S Barmeier: > \startenumeration[text=3D{Yoneda Lemma},location=3D ... ] Enumeration don=92t support key-val-input for the commands and environments (although it isn=92t hard to add it). The both arguments are =93[reference]= =94 and =93{title}=94. Besides the already presented solution here is one which use the annotation module (local replacement of the enumeration text doesn=92t work because \setupenumerations resets the counter): \usemodule[annotation] % solution 1 %\defineenumeration % [thelemma] % [ location=3Dserried, % text=3DLemma, % width=3Dbroad] % %\define[2]\LemmaCommand % {\doiftext % {\placeannotationtitle} % {\setupenumerations[thelemma][text=3D\placeannotationtitle]}% % \startthelemma#2\stopthelemma} \defineenumeration [thelemma] [ location=3Dserried, text=3D\placeannotationtitle, width=3Dbroad] \define[2]\LemmaCommand {\doiftextelse{\placeannotationtitle} {} {\def\placeannotationtitle{Lemma}}% \startthelemma#2\stopthelemma} \defineannotation [lemma] [alternative=3Dcommand, command=3D\LemmaCommand] % solution 2 %\defineenumeration % [theproclaim] % [ location=3Dserried, % text=3DProclaim, % width=3Dbroad] % %\define[2]\ProclaimCommand % {\doiftext % {\placeannotationtext} % {\setupenumerations[theproclaim][text=3D\placeannotationtext]}% % \starttheproclaim#2\stoptheproclaim} \defineenumeration [theproclaim] [ location=3Dserried, text=3D\placeannotationtext, width=3Dbroad] \define[2]\ProclaimCommand {\doiftextelse{\placeannotationtext} {} {\def\placeannotationtext{Proclaim}}% \starttheproclaim#2\stoptheproclaim} \defineannotation [proclaim] [alternative=3Dcommand, command=3D\ProclaimCommand] \starttext \startlemma =85 \stoplemma \startlemma{Another Lemma} =85 \stoplemma \blank[2*line] \startproclaim =85 \stopproclaim \startproclaim[text=3D{Another Proclaim}] =85 \stopproclaim \stoptext 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 ___________________________________________________________________________= ________