From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25298 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: indexing suggestion Date: Tue, 17 Jan 2006 14:09:22 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1137503454 16621 80.91.229.2 (17 Jan 2006 13:10:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 17 Jan 2006 13:10:54 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 17 14:10:51 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 1Eyqbj-00046l-9U for gctc-ntg-context-518@m.gmane.org; Tue, 17 Jan 2006 14:10:43 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8070812833; Tue, 17 Jan 2006 14:10:39 +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 21315-08; Tue, 17 Jan 2006 14:10:37 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1A75212810; Tue, 17 Jan 2006 14:10:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7D62F12810 for ; Tue, 17 Jan 2006 14:10:34 +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 21316-07-2 for ; Tue, 17 Jan 2006 14:10:33 +0100 (CET) Original-Received: from smtp.science.uva.nl (smtp.science.uva.nl [146.50.4.84]) by ronja.ntg.nl (Postfix) with SMTP id 6D0EE127D8 for ; Tue, 17 Jan 2006 14:10:29 +0100 (CET) Original-Received: from 118-118.uva.surfnetthuis.nl [145.98.118.118] by smtp.science.uva.nl with ESMTP (sendmail 8.11.6p2/config 11.36). id k0HDAQx28607; Tue, 17 Jan 2006 14:10:26 +0100 X-Organisation: Faculty of Science, University of Amsterdam, The Netherlands X-URL: http://www.science.uva.nl/ Original-To: NTG ConTeXt X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new 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:25298 Archived-At: When I started to do my syllabus again but in ConTeXt, I also began to set up an index. Readily it became a nuisance to type each time: in this sentence \index{sentence} etc. Making this into a macro I am now typing: in this \indexed{sentence} etc. It is a small difference but not only is it less typing, it also keeps the text more readable. I coded this macro: \def\indexed#1{\index{#1}#1} Note, \index{#1} preceeds typesetting of the text #1, otherwise the next space is eaten by \index. Of course the full macro would be something like \indexed[whatever] {sentence}, and all the other options in \index[]{}. However if have not enough experience with the way such things are cooked in ConTeXt and do not want to pollute the code with halfbaked code of my own. Maybe Hans and Taco feel this suggestion useful enough to pick it up. yours sincerely, dr. H. van der Meer