From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/53616 Path: news.gmane.org!not-for-mail From: "Kevin D. Robbins" Newsgroups: gmane.comp.tex.context Subject: Problem or bug with enumerations in latest ConTeXt beta Date: Wed, 21 Oct 2009 18:12:38 -0600 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=000e0cd5f6dc04d63b04767af4a6 X-Trace: ger.gmane.org 1256281824 26283 80.91.229.12 (23 Oct 2009 07:10:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2009 07:10:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 23 09:10:15 2009 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.50) id 1N1EHu-0005iL-U9 for gctc-ntg-context-518@m.gmane.org; Fri, 23 Oct 2009 09:10:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7F2DDC9BAE; Fri, 23 Oct 2009 09:09:02 +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 UUtdq9k0Qh9l; Fri, 23 Oct 2009 09:09:02 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 19FD8C9B99; Fri, 23 Oct 2009 09:08:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8B588C9BAE for ; Fri, 23 Oct 2009 09:08:47 +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 cYj3gWyDk6iI for ; Fri, 23 Oct 2009 09:08:45 +0200 (CEST) Original-Received: from mail-pw0-f55.google.com (mail-pw0-f55.google.com [209.85.160.55]) by balder.ntg.nl (Postfix) with ESMTP id DCB51C9B9E for ; Fri, 23 Oct 2009 09:08:43 +0200 (CEST) Original-Received: by pwi18 with SMTP id 18so1897066pwi.34 for ; Fri, 23 Oct 2009 00:09:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=aEtPij2ByR7BATEiM21I3plHyAFHbUc+XbJm8Jf2SqQ=; b=WOVUbAqw4qsW/bf+4SWLAzNBS2Wo1ygzbelmmowxJbXHTjEcftno4ijqf0gAYFIXIm JYwUfOzYvHofRPFItDx5CdrAUsUAJ2HN60UQg0A+uUfgYVMhzfHEYEvahAN2aw/vuWAp GGltL+VIF+9PdDlYNevsXKsUnTCsk1Ijr0Suc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=IoVq3x3pTZNF43dJ0/j4HkHFoWZdI1p2K+SOm6drJfVyuZWTcxqxZvRnUxNHer2MHr hxYN1WD3/HrKrYuhsBHjqPC7rNd9Dlak33btEq4ZTy3vX/Ai133tmTXyj6vQka0ZbNFc xn9QRGiz62cAFmNUAHYuJ4uCQequjBsl4H+P8= Original-Received: by 10.143.138.4 with SMTP id q4mr647568wfn.311.1256170358887; Wed, 21 Oct 2009 17:12:38 -0700 (PDT) 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:53616 Archived-At: --000e0cd5f6dc04d63b04767af4a6 Content-Type: multipart/alternative; boundary=000e0cd5f6dc04d63304767af4a4 --000e0cd5f6dc04d63304767af4a4 Content-Type: text/plain; charset=UTF-8 Hello all, I have attached a fairly minimal example that demonstrates three problems I currently have using an enumeration for code listings. The first problem is that \placelist[enumeration:listing] errors out with: ! Missing number, treated as zero. ) \placestructurelist ...sts.process("#1","#2","#3") } \doplacerawlist ...mber \listparameter \c!number } \stoplistreferences \endgr... \doplacelist ...ginoflist \doplacerawlist [#1][#2] \doendoflist \par l.24 The second problem is that \in{Listing}[lst:b] produces Listing 2.2 rather than Listing 2 as I expect since I've asked for numbering way=bytext in \defineenumeration. How can I get the number produced by \in{Listing}[lst:b] to match the listing number typeset in the listing title? The third problem is that the document hyperlinks produced by \in{Listing}[lst:b] with interaction enabled don't seem to do anything. Cheers, Kevin --000e0cd5f6dc04d63304767af4a4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: base64 SGVsbG8gYWxsLDxicj48YnI+SSBoYXZlIGF0dGFjaGVkIGEgZmFpcmx5IG1pbmltYWwgZXhhbXBs ZSB0aGF0IGRlbW9uc3RyYXRlcyB0aHJlZSBwcm9ibGVtcyBJIGN1cnJlbnRseSBoYXZlIHVzaW5n IGFuIGVudW1lcmF0aW9uIGZvciBjb2RlIGxpc3RpbmdzLiA8YnI+PGJyPlRoZSBmaXJzdCBwcm9i bGVtIGlzIHRoYXQgXHBsYWNlbGlzdFtlbnVtZXJhdGlvbjpsaXN0aW5nXSBlcnJvcnMgb3V0IHdp dGg6PGJyPgo8YnI+ISBNaXNzaW5nIG51bWJlciwgdHJlYXRlZCBhcyB6ZXJvLjxicj4mbHQ7dG8g YmUgcmVhZCBhZ2FpbiZndDsgPGJyPsKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC oCApPGJyPlxwbGFjZXN0cnVjdHVyZWxpc3QgLi4uc3RzLnByb2Nlc3MoJnF1b3Q7Iz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ZSBudW1iZXIgcHJvZHVjZWQgYnkgXGlue0xp c3Rpbmd9W2xzdDpiXSB0byBtYXRjaCB0aGUgbGlzdGluZyBudW1iZXIgdHlwZXNldCBpbiB0aGUg bGlzdGluZyB0aXRsZT88YnI+Cjxicj5UaGUgdGhpcmQgcHJvYmxlbSBpcyB0aGF0IHRoZSBkb2N1 bWVudCBoeXBlcmxpbmtzIHByb2R1Y2VkIGJ5IFxpbntMaXN0aW5nfVtsc3Q6Yl0gd2l0aCBpbnRl cmFjdGlvbiBlbmFibGVkIGRvbiYjMzk7dCBzZWVtIHRvIGRvIGFueXRoaW5nLjxicj48YnI+Q2hl ZXJzLDxicj48YnI+S2V2aW48YnI+Cg== --000e0cd5f6dc04d63304767af4a4-- --000e0cd5f6dc04d63b04767af4a6 Content-Type: application/x-tex; name="test-enumerations.tex" Content-Disposition: attachment; filename="test-enumerations.tex" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g12ra1iu1 XGRlZmluZWVudW1lcmF0aW9uIFtsaXN0aW5nXQogICBbbGlzdD1saXN0aW5nLAogICAgY29tbWFu ZD1cc3MsCiAgICBsZWZ0PXtMaXN0aW5nIH0sCiAgICB0aXRsZT15ZXMsCiAgICB0aXRsZWxlZnQ9 XGVtZGFzaFxzcGFjZVxzcGFjZSwKICAgIHRpdGxlcmlnaHQ9LAogICAgdGV4dD0sCiAgICBsaXN0 dGV4dD17TGlzdGluZyB9LAogICAgd2lkdGg9YnJvYWQsCiAgICBudW1iZXI9eWVzLAogICAgd2F5 PWJ5dGV4dF0KClxzZXR1cGxpc3QgW2VudW1lcmF0aW9uOmxpc3RpbmddCiAgW2Rpc3RhbmNlPTJl bSwKICAgYWx0ZXJuYXRpdmU9YywKICAgaW50ZXJhY3Rpb249YWxsLAogICB0ZXh0Y29tbWFuZD1c dXBwZXJjYXNlLAogICBzdHlsZT1ub3JtYWxdCgpcc2V0dXBpbnRlcmFjdGlvbltzdGF0ZT1zdGFy dF0KClxzdGFydHRleHQKCiUgXHBsYWNlbGlzdFtlbnVtZXJhdGlvbjpsaXN0aW5nXQoKXGNoYXB0 ZXJbY2g6YV17Q2hhcHRlciBBfQpcc3RhcnRsaXN0aW5nW2xzdDphXXtGb28gYmFyfQpcaW5wdXQg dHVmdGUgClxzdG9wbGlzdGluZwoKU2VlIFxpbntMaXN0aW5nfVtsc3Q6Yl0gaW4gXGlue0NoYXB0 ZXJ9W2NoOmJdLgoKXGNoYXB0ZXJbY2g6Yl17Q2hhcHRlciBCfQpcc3RhcnRsaXN0aW5nW2xzdDpi XXtCYXp9ClxpbnB1dCBrbnV0aApcc3RvcGxpc3RpbmcKClNlZSBcaW57TGlzdGluZ31bbHN0OmFd LgoKXHN0b3B0ZXh0 --000e0cd5f6dc04d63b04767af4a6 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --000e0cd5f6dc04d63b04767af4a6--