From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24839 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Gilles_P=E9rez-Lambert?= Newsgroups: gmane.comp.tex.context Subject: 'Glossary' on every page Date: Thu, 29 Dec 2005 17:47:19 +0100 Message-ID: <72e74e250512290847w3b1f0b34u8fe944f12239da39@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1135874853 29868 80.91.229.2 (29 Dec 2005 16:47:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Dec 2005 16:47:33 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 29 17:47:30 2005 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Es0w3-0003df-RZ for gctc-ntg-context-518@m.gmane.org; Thu, 29 Dec 2005 17:47:27 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5368A127D9; Thu, 29 Dec 2005 17:47:26 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16647-03; Thu, 29 Dec 2005 17:47:22 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 596BF127C3; Thu, 29 Dec 2005 17:47:22 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 93EA6127C3 for ; Thu, 29 Dec 2005 17:47:21 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16661-02 for ; Thu, 29 Dec 2005 17:47:20 +0100 (CET) Original-Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.198]) by ronja.ntg.nl (Postfix) with SMTP id 8EA24127BE for ; Thu, 29 Dec 2005 17:47:20 +0100 (CET) Original-Received: by nproxy.gmail.com with SMTP id p77so632475nfc for ; Thu, 29 Dec 2005 08:47:19 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=BOlmFH9ax07twbdy0tNDZe7j4DTbpk+8z1VMSnr8vt4ObFvsE+50dsn9Zvpzm+MptLpNBLok5pvpI8mpLXK4aekn2gqajWNLBLAsZ6pZvcm2o6JzTeOWmZ+LWx9+dJqy0o2tsNATIqvF5bDPMN1vgneSiwJ261rQeBVXG1I0cdo= Original-Received: by 10.48.31.18 with SMTP id e18mr385403nfe; Thu, 29 Dec 2005 08:47:19 -0800 (PST) Original-Received: by 10.48.231.9 with HTTP; Thu, 29 Dec 2005 08:47:19 -0800 (PST) Original-To: ntg-context@ntg.nl Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:24839 Archived-At: Hello to all, I have a problem: I want to add a kind of glossary on a book. It will be, in fact, an explanation of acronyms ('NATO: North Atlantic Treaty Organisation' for instance). But... I'd want it on every page, only for the acronyms used on the current page (and alphabetically sorted if possible)... I tried using layers (with or without tying them to backgrounds), blocks (\begin... \end...), buffers, list of synonyms, etc. but I had problems with one of the requirements or another. :-) My first idea was to use blocks for each page : \beginABREV[1] NATO: North Atlantic Treaty Organisation \endABREV \beginABREV[1] BLOB: Binary Large Object \endABREV and to use them with \useblocks[ABREV][\pagenumber] in the footer. To be sure to give the right page number to \beginABREV, I tried to define a label and use it, something like (from memory, I don't have my code near to me): \reference[abbrev\ABREVcount]% Put a label \beginABREV[{\ref[r][abbrev\ABREVcount]}]% and use the label to get the current page on subsequent runs. but I went on a nightmare of expansion problems... Plus it didn't eliminate duplicates nor sort the acronyms. But it would have been a start... :-) Can someone point me to the right direction? Thanks in advance, Gilles.