From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86607 Path: news.gmane.org!not-for-mail From: Thangalin Newsgroups: gmane.comp.tex.context Subject: Customize register format Date: Sun, 9 Mar 2014 16:56:44 -0700 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1394409409 25298 80.91.229.3 (9 Mar 2014 23:56:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Mar 2014 23:56:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 10 00:57:00 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WMnaU-0006kz-DO for gctc-ntg-context-518@m.gmane.org; Mon, 10 Mar 2014 00:56:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1927E101EE; Mon, 10 Mar 2014 00:56:58 +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 l42dqhm8cnh8; Mon, 10 Mar 2014 00:56:56 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 0E8C7101E3; Mon, 10 Mar 2014 00:56:56 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8BE2A101E3 for ; Mon, 10 Mar 2014 00:56:54 +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 6luNAqJ6fUTk for ; Mon, 10 Mar 2014 00:56:52 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id D886B101E1 for ; Mon, 10 Mar 2014 00:56:47 +0100 (CET) Original-Received: from mail-ie0-x22f.google.com (mail-ie0-x22f.google.com [IPv6:2607:f8b0:4001:c03::22f]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s29NujSX023695 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 10 Mar 2014 00:56:46 +0100 Original-Received: by mail-ie0-f175.google.com with SMTP id to1so6284402ieb.6 for ; Sun, 09 Mar 2014 16:56:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=KQ1v13U54Y/0hk59/5gzjUBv/46mnwv4MnSg+slHdnk=; b=v9R4aVuzHBp+pTPX6CBKx85agPWabIvrDxrYZBS155/9AixHmcLN1KKGThEcRdqDmR aB2Zc2wwDPzPKuNNbt0N7MC1faG5u3MytTicav/WdYZsPv4gYMetZop/EH8sdKz1bK1B WPKOni/9X0sSP3P3Fqt7pUpsVC3BFMrWnRFfLxA1gDmZyhKpboA3gdKbieYvbDDpUNbG +2aDrzLWXbb6stR9J8pTdQQj8pZeoMmL+9LNVasO9OFfINSGCd15nmmQYHNMqsLpSwl3 wsvn9z0kAwvptit2a0i4KS+Ow5em3VkqPPbO15dGwZYoSqUJH0gMrusfXEYOFnYDfg1J dp2Q== X-Received: by 10.42.10.82 with SMTP id p18mr24370448icp.30.1394409404992; Sun, 09 Mar 2014 16:56:44 -0700 (PDT) Original-Received: by 10.43.18.69 with HTTP; Sun, 9 Mar 2014 16:56:44 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c03::22f; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TLzzUKJq - 733091997feb - 20140310 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86607 Archived-At: Hi, I am trying to reproduce the following register layout: http://i.imgur.com/qXSK2VM.png Entries include a section name, page number, author, and author URL; the entries are formatted fairly differently from a standard index. So far I have: \setupinteraction[state=start,] \define\Punctuate{\color[black]{\normal.}} \define[2]\href{\begingroup\goto{\color[blue]{#1}}[url(#2)]\endgroup} \define[1]\TextCommand{\item\currentregisterpageuserdata{title}, } \define[1]\PageCommand{#1\Punctuate{} {\href{\currentregisterpageuserdata{author}}{\currentregisterpageuserdata{authorurl}}}\Punctuate\stopitemize} % #1 - Author; #2 - Author URL; #3 - Section title \define[3]\PhotographerIndexEntry{% \setregisterentry[PhotographerIndex][entries={#1}][ title={#3}, author={#1}, authorurl={#2}, ]{} } \defineregister[PhotographerIndex][ n=1, indicator=no, textcommand=\TextCommand, pagecommand=\PageCommand, distance=\zeropoint, before={\startitemize[packed,nowhite]}, ] \setuphead[section][aftersection=\page,] \starttext \startsection[title={Maguro}] Text \PhotographerIndexEntry{Kenji Fujimoto}{http://bit.ly/1fNWF0Y}{Maguro} \stopsection \startsection[title={Unagi}] Text \PhotographerIndexEntry{Kenji Fujimoto}{http://bit.ly/1fNWF0Y}{Unagi} \stopsection \placePhotographerIndex \stoptext This fails because values for "entries={#1}" must be unique. How can I customize the registers to resemble the given layout? (Aside, the section title is repeated twice -- is there a way to remove the duplication? I tried \namedstructurevariable, but couldn't figure out how to get the expanded value.) Thank you. ___________________________________________________________________________________ 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 ___________________________________________________________________________________