From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66607 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: One-off theorem titles Date: Thu, 3 Mar 2011 13:07:28 -0500 (EST) Message-ID: References: <4D6F4BC0.4090106@googlemail.com> 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 1299175737 15113 80.91.229.12 (3 Mar 2011 18:08:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Mar 2011 18:08:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 03 19:08:46 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 1PvCxB-0003AA-4Y for gctc-ntg-context-518@m.gmane.org; Thu, 03 Mar 2011 19:08:45 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 543B8CAA78; Thu, 3 Mar 2011 19:08:44 +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 fXKOHUwLF-+w; Thu, 3 Mar 2011 19:08:32 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 25C13CAA89; Thu, 3 Mar 2011 19:08:32 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E641CCAA89 for ; Thu, 3 Mar 2011 19:08:30 +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 S5mtRGNTGMev for ; Thu, 3 Mar 2011 19:08:09 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id CAE7BCAA78 for ; Thu, 3 Mar 2011 19:08:09 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p23I85Cu026489 for ; Thu, 3 Mar 2011 19:08:09 +0100 Original-Received: FROM [10.0.2.15] (Unknown [132.206.94.219]) By tombraider.mr.itd.umich.edu ID 4D6FD904.4C783.3096 ; Authuser adityam; 3 Mar 2011 13:08:04 EST In-Reply-To: <4D6F4BC0.4090106@googlemail.com> User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0xEeG85Cm - d5ef0f0252ad - 20110303 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:66607 Archived-At: On Thu, 3 Mar 2011, S Barmeier wrote: > Currently I am using something like > > \defineenumeration[lemma] > [location=serried, > headstyle=bold, > text=Lemma, > width=broad, > style=italic] > > to define theorems, lemmas, etc. > > Sometimes a theorem or lemma will have its own name (e.g. Yoneda Lemma), > and I find it slightly cumbersome to write something like > > 3.1 Theorem (Yoneda Lemma) > 3.1 Lemma (Yoneda) > 3.1 Lemma (Yoneda Lemma) > > and was really hoping that > > \startlemma[text={Yoneda Lemma}] > > would give me the desired > > 3.1 Yoneda Lemma > > but it doesn't. I would like to keep the whole setup the same and only > change the text for this instance. Is there any way to implement this > except for defining a whole new enumeration for one > theorem/lemma/proposition by > > \startenumeration[text={Yoneda Lemma},location= ... ] @Hans: Does it make sense to redo all the theorem etc using the new structure code? There is a little difference between \startsection .... \stopsection \starttheorem .... \stoptheorem except that in enumerations the title is optional and there are a few predefined header styles (location=whatever), and enumerations have a closesymbol. That will easily allow: \startthoerem[text={Yoneda Lemma}] etc and one will also get the option of setting the list text, bookmarks, and page marks. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________