From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58576 Path: news.gmane.org!not-for-mail From: Michael Saunders Newsgroups: gmane.comp.tex.context Subject: register confusion Date: Fri, 7 May 2010 01:49:41 -0500 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1273214992 27288 80.91.229.12 (7 May 2010 06:49:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 May 2010 06:49:52 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri May 07 08:49:51 2010 connect(): No such file or directory 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 1OAHNe-0007z5-RZ for gctc-ntg-context-518@m.gmane.org; Fri, 07 May 2010 08:49:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 425E8C9C91; Fri, 7 May 2010 08:49:50 +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 QdvZ2GTsurj9; Fri, 7 May 2010 08:49:46 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B5BACC9BB4; Fri, 7 May 2010 08:49:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1B334C9BB4 for ; Fri, 7 May 2010 08:49:45 +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 WOZo93bioLxf for ; Fri, 7 May 2010 08:49:42 +0200 (CEST) Original-Received: from mail-yw0-f194.google.com (mail-yw0-f194.google.com [209.85.211.194]) by balder.ntg.nl (Postfix) with ESMTP id B6A78C9AF5 for ; Fri, 7 May 2010 08:49:42 +0200 (CEST) Original-Received: by ywh32 with SMTP id 32so398396ywh.5 for ; Thu, 06 May 2010 23:49:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=DECW/1qK6UNHHBh0ZrhwH+VlmKFDZEjndtHPIKMEtIM=; b=dkEbn1adVT28+oekL401r6WfO8mUyDggqU+/CfzFIX7bblWTa+RUtrCE/0BASwb5R0 7D2d2WZt+Vr12EfWuQPNoArPdjVlq3g/WPXPF+XRd2MandlEoBzFGzNJRsTdCjUMYOlD X6eUeLh9lU7pI3tDJWF2dqWdoVL/ANxFULvqQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=tRsXrI8QSBdLj118pJzRrNc7yCu50A+SyEvlEVc3gtsj3OesfM0AZ8qkDzosTCpUMN K6/rCb4eStbB4IyXlUvoUovxJ4WTOk5C6gIv7oLx3NCR56CMOJlKuE6UjIQ/ON/jdH2u 0yt9KUG69rrPIaqNO/AmTlhNEASMHU+NlPj94= Original-Received: by 10.101.178.20 with SMTP id f20mr9532818anp.229.1273214981510; Thu, 06 May 2010 23:49:41 -0700 (PDT) Original-Received: by 10.100.197.16 with HTTP; Thu, 6 May 2010 23:49:41 -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:58576 Archived-At: Finding simple \at[] statements inadequate for glossaries (where there might be zero, one, or several page references per entry), I'm experimenting with registers, but I'm not getting the expected results: \defineregister[glind][glinds] \setupregister[glind][style=\it] \setupinteraction[state=start] \starttext double\glind[double]{} \page single\glind[single]{} \page double\glind[double]{} \page single should read, '2': (p.\placeglind[single]) double should read, '1, 3': (pp.\placeglind[double]) zero should be blank: (\placeglind[zero]) \stoptext Note the problems: 1. \placeglind[label] doesn't point to the label, it points to any label. 2. Context forces a linebreak before and after the numbers. 3. The numbers aren't italic. Also, it would be nice to set 'p.', 'pp.', or nothing automatically, depending on whether there was one, several or zero instances of the label in the text. Is register not the mechanism to do this? If not, I don't know what is. ___________________________________________________________________________________ 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 ___________________________________________________________________________________