From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_SCC_BODY_TEXT_LINE,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4916 invoked from network); 15 May 2023 16:18:49 -0000 Received: from zapf.ntg.nl (5.39.185.232) by inbox.vuxu.org with ESMTPUTF8; 15 May 2023 16:18:49 -0000 Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AFA471C2FB1; Mon, 15 May 2023 18:18:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rqyBfYVg3aFV; Mon, 15 May 2023 18:18:26 +0200 (CEST) Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AE3BE1C3221; Mon, 15 May 2023 18:18:26 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 369D71C3427 for ; Mon, 15 May 2023 18:18:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nLvHh6HNr61s for ; Mon, 15 May 2023 18:18:22 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=17.58.38.56; helo=ms11p00im-qufo17281901.me.com; envelope-from=alan.braslau@icloud.com; receiver= Received: from ms11p00im-qufo17281901.me.com (ms11p00im-qufo17281901.me.com [17.58.38.56]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 4C3061C2FB1 for ; Mon, 15 May 2023 18:18:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1684167501; bh=+G7xmznlSHXkT7AuhpTbLY9EIqcm2+vLx8K/v8ydQXs=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; b=i5B6bKWWYw2EFFcnQzb2zMCsCTV5U40+CzFvhY0k4Xpr9Fo7d0kdGIfFDkzTyEHai 0RT618p+LsQW1oeUUvUrybhQHhaQCV1Fb5sBTp2YfffIIj3c8eZauOjJ/Tf755CYcj E1vzBf4IiZGgDcBmpb3vmYrV+tqCSoZGMDViuyrYRBTwLOkoyOTJrerAtoTVgXKida nBRWnyp7oLuPgkfGlIOgovU/kVh8D2JNCw20PsH5rnNnNCoLzPlCoTJ+vUmYDBZLt+ Zj8YOZRzKsZAHpF/m9zoO7Q13ZegiG5etB9gn2mnSa1gCFHD+nfKMPeSzGq9llT/C7 GljiZK4F8qgCA== Received: from boo.my.domain (ms11p00im-dlb-asmtpmailmevip.me.com [17.57.154.19]) by ms11p00im-qufo17281901.me.com (Postfix) with ESMTPSA id 17A9AD8062D; Mon, 15 May 2023 16:18:20 +0000 (UTC) Date: Mon, 15 May 2023 10:18:15 -0600 To: Hans Hagen via ntg-context Message-ID: <20230515101800.5b114c4f@boo.my.domain> In-Reply-To: <8750b1c3-a877-0cee-a2c1-f39498eda5ff@freedom.nl> References: <2106398154.1236276.1684114673761.ref@mail.yahoo.com> <2106398154.1236276.1684114673761@mail.yahoo.com> <8750b1c3-a877-0cee-a2c1-f39498eda5ff@freedom.nl> X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.1) MIME-Version: 1.0 X-Proofpoint-GUID: qQ60mwG_bAJ1_CyCptrTZkcLX5beYk0W X-Proofpoint-ORIG-GUID: qQ60mwG_bAJ1_CyCptrTZkcLX5beYk0W X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.138,18.0.572,17.11.62.513.0000000_definitions?= =?UTF-8?Q?=3D2020-02-14=5F11:2020-02-14=5F02,2020-02-14=5F11,2021-12-02?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 suspectscore=0 phishscore=0 adultscore=0 malwarescore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2305150136 Subject: Re: [NTG-context] Is there a way to centrally add a list of indexed items to a sub category? X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.38 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Alan Braslau via ntg-context Reply-To: mailing list for ConTeXt users Cc: Alan Braslau Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ntg-context-bounces@ntg.nl Sender: "ntg-context" On Mon, 15 May 2023 09:40:22 +0200 Hans Hagen via ntg-context wrote: > \starttexdefinition tolerant protected IndexB[#1]#:#*#2 > \index{#2} > \doloopoverlist {#1} { > \index{##1+#2} > } > \stoptexdefinition Awesome! However, I think that Joel was looking for a solution closer to what Hraban suggested, creating automatic subcategories. I would do that through a additional macros: \starttexdefinition protected Animals#1 \index{#1} \index{animals+#1} #1 ) \starttexdefinition protected Plants#1 \index{#1} \index{plants+#1} #1 ) \Animals{dogs} \Plants{trees} I use as a general indexing macro: \starttexdefinition tolerant protected Index[#1]#:#*#2 \index[#1]{#2} #2 \stoptexdefinition Alan ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________