From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29881 Path: news.gmane.org!not-for-mail From: Steffen Wolfrum Newsgroups: gmane.comp.tex.context Subject: Re: index (again) Date: Wed, 2 Aug 2006 10:14:06 +0200 Message-ID: <2792A097-1B1F-48FC-9C8D-B25ED6CCCEEB@st.estfiles.de> References: <44C7D5DB.8040208@wxs.nl> <82C5BFF6-5E29-461C-91CC-BB31FD070E94@st.estfiles.de> <44C9C6C6.1020206@wxs.nl> <63E0D309-1A07-49D2-B77B-DCE47B6AFBD2@st.estfiles.de> <44D05BC8.9070707@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154506477 26252 80.91.229.2 (2 Aug 2006 08:14:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 Aug 2006 08:14:37 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 02 10:14:36 2006 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 1G8Bs3-0004W5-3K for gctc-ntg-context-518@m.gmane.org; Wed, 02 Aug 2006 10:14:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B36851FE98; Wed, 2 Aug 2006 10:14:25 +0200 (CEST) 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 27326-09-4; Wed, 2 Aug 2006 10:14:19 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 168651FEB9; Wed, 2 Aug 2006 10:14:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 85CD61FEB9 for ; Wed, 2 Aug 2006 10:14:16 +0200 (CEST) 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 27326-09-3 for ; Wed, 2 Aug 2006 10:14:13 +0200 (CEST) Original-Received: from smtprelay04.ispgateway.de (smtprelay04.ispgateway.de [80.67.18.16]) by ronja.ntg.nl (Postfix) with SMTP id A549C1FE98 for ; Wed, 2 Aug 2006 10:14:12 +0200 (CEST) Original-Received: (qmail 23029 invoked from network); 2 Aug 2006 08:14:09 -0000 Original-Received: from unknown (HELO [62.134.73.84]) (698580@[62.134.73.84]) (envelope-sender ) by smtprelay04.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 2 Aug 2006 08:14:09 -0000 In-Reply-To: <44D05BC8.9070707@elvenkind.com> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:29881 Archived-At: Am 02.08.2006 um 10:01 schrieb Taco Hoekwater: > Steffen Wolfrum wrote: >> Hi, >> >> I need to know if the following is possible in ConTeXt. >> >> If it's not, please don't hesitate to tell me, so I can think of a >> work-around. >> It it is possible, it would be great to tell me how! > > Is this is inside a register or keyed directly into your document? > > Taco It's like this: \unprotect \def\dosetpageregisterentrya#1#2% {\edef\currententrylevel{1}% \global\let\c!entryb\relax \global\let\c!entryc\relax \gdef\c!entrya {\iffirstregisterentry\else\endgraf\fi % new \global\firstregisterpagetrue \hangindent1em\noindent\c!entryreference \dohandleregisterentry{\executeifdefined {\??id#1\c!deeptextcommand}\firstofoneargument{#2}}% \global\firstregisterentryfalse \global\firstsubentrytrue \global\firstsubsubentrytrue}} \def\HowUgly#1{\doHowUgly#1\relax} \def\doHowUgly#1#2\relax{\iffirstregisterentry{\bf#1}\else#1\fi#2} \setupregister[index][indicator=no,deeptextcommand=\HowUgly] \starttext \chapter{First Chapter} Some text...\index{word} \section {First Section} Some text...\index{word} Some text...\index{another entry} Some text...\index{ansi} Some text...\index{another entry} \page[yes] \completeindex \stoptext ... but in my real document looking like this: Ministererlaubnis 12, 15, 16, 17, 18, 29, 30, 31, 32, 33, 34, 35, 37, 38, 39, 75, 82, 83, 84, 85, 86, 87, 159, 222, 222, 222, 227, 228, 228, 228, 228, 229, 231, 232, 233, 234, 235, 236, 238, 239, 248, 260, 261, 265, 277, 278, 279, 280, 282, 283, 286, 289, 304, 311, 318, 323, 324, 328, 330, 333, 335, 339, 343 Steffen