From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62648 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: A few puzzling problems (bugs?) with enumerations Date: Fri, 15 Oct 2010 13:19:08 +0200 Message-ID: <22E50D2F-2D87-45DC-BDD6-B82AE117DC3B@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1287141585 15897 80.91.229.12 (15 Oct 2010 11:19:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Oct 2010 11:19:45 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 15 13:19:44 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 1P6iK6-00081c-7j for gctc-ntg-context-518@m.gmane.org; Fri, 15 Oct 2010 13:19:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 76E00CA737; Fri, 15 Oct 2010 13:19:41 +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 60eJoBSFveLs; Fri, 15 Oct 2010 13:19:38 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C0F50CA73B; Fri, 15 Oct 2010 13:19:38 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8D518CA73B for ; Fri, 15 Oct 2010 13:19:37 +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 93-2Xayi7MQB for ; Fri, 15 Oct 2010 13:19:35 +0200 (CEST) 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 8D852CA737 for ; Fri, 15 Oct 2010 13:19:35 +0200 (CEST) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o9FBJYcj002476 for ; Fri, 15 Oct 2010 13:19:35 +0200 Original-Received: by bwz19 with SMTP id 19so1553766bwz.14 for ; Fri, 15 Oct 2010 04:19:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=qFHVSaUyIaKEdX50wXhEoe1hJCfUdhdCk8TokQxq9QA=; b=X1u/BPLm5ft2nWLfVQzxfTJhLtlTfWlA9NzU91wgvU95o2vB1OdnxUZvfhKYsxpuL/ TGg8XJyPCtaK7W56Bc5k3r77phWgCqh5SZtM1VBN5H9L7poTgsaRJSYU4/R4HAlwKNdH b+WWkqKLa9paEUYbrBA0RXKuVxt5AjiedaRIs= 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=VdxFBBBDCn/wKdA1hToXnAdCPkB6Sbc2Nw7a50/s+q9sngiruf5QzcQzk43ZzywwdB 3+ZUqlmlm0W4WCxPd1btLtPVIDDpvKXliVp5raeito5N9r1tUrx2WAhaJDmCDLzcIDR5 7oQyhBAb7TpTnRPhY0MOQ2i2qbFWpJcvCvjwI= Original-Received: by 10.204.78.136 with SMTP id l8mr670774bkk.63.1287141574179; Fri, 15 Oct 2010 04:19:34 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B295C8D.dip.t-dialin.net [91.41.92.141]) by mx.google.com with ESMTPS id a25sm10332091bks.8.2010.10.15.04.19.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 15 Oct 2010 04:19:30 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1081) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.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: 0xDiXjy1P - 45b72754d644 - 20101015 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:62648 Archived-At: Am 15.10.2010 um 10:20 schrieb Mathieu Boespflug: > Ok so after reading the source code of strc-des.mkiv, I found that > contrary to earlier documentation such as > > http://www.ntg.nl/maps/36/09.pdf > > it is not the 'number' parameter that should be used to share > numbering but the 'counter' parameter. After fixing that in my code, > theorems now have proper numbers and references to theorems work > properly too. \unprotected\def\doenumerationextratext {\doif{\descriptionparameter\c!title}\v!yes {\doifsomething\@@dodoenumerationtext % WS: added this test {\begingroup \dosetdescriptionattributes\c!titlestyle\c!titlecolor \hskip\descriptionparameter\c!titledistance \descriptionparameter\c!titlecommand {\descriptionparameter\c!titleleft \begstrut\@@dodoenumerationtext\endstrut \descriptionparameter\c!titleright}% \endgroup}}} \unprotected\def\doenumerationfullnumber#1% text, title {\begingroup \dosetdescriptionattributes\c!headstyle\c!headcolor \the\everyenumeration %\descriptionparameter\c!command{\strut#1\doenumerationnumber\doenumerationextratext}% \descriptionparameter\c!command{\strut#1\ifconditional\enumerationnumberenabled\doenumerationnumber\fi\doenumerationextratext}% \endgroup} Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________