From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50728 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: indices Date: Sun, 24 May 2009 09:45:47 +0200 Message-ID: <4A18FB2B.1090106@elvenkind.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1243151232 26709 80.91.229.12 (24 May 2009 07:47:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 May 2009 07:47:12 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun May 24 09:47:05 2009 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 lo.gmane.org with esmtp (Exim 4.50) id 1M88QD-0003mu-FR for gctc-ntg-context-518@m.gmane.org; Sun, 24 May 2009 09:47:05 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 602171FEEA; Sun, 24 May 2009 09:47:04 +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 32307-07; Sun, 24 May 2009 09:46:19 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 62F5B1FEB1; Sun, 24 May 2009 09:46:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ECD4A1FEB1 for ; Sun, 24 May 2009 09:46:09 +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 06002-07 for ; Sun, 24 May 2009 09:45:55 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by ronja.ntg.nl (Postfix) with ESMTP id A689D1FE6D for ; Sun, 24 May 2009 09:45:54 +0200 (CEST) Original-Received: from smtp-vbr13.xs4all.nl (smtp-vbr13.xs4all.nl [194.109.24.33]) by filter3-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4O7jres032452 for ; Sun, 24 May 2009 09:45:54 +0200 Original-Received: from [192.168.178.26] (boo.demon.nl [82.161.175.147]) (authenticated bits=0) by smtp-vbr13.xs4all.nl (8.13.8/8.13.8) with ESMTP id n4O7jliG057400 for ; Sun, 24 May 2009 09:45:52 +0200 (CEST) (envelope-from taco@elvenkind.com) User-Agent: Thunderbird 2.0.0.19 (X11/20090114) In-Reply-To: X-Virus-Scanned: by XS4ALL Virus Scanner X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=194.109.24.33; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 230567435 - a56ebefae3d3 - 20090524 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:50728 Archived-At: Charles Doherty wrote: > Dear all, > > I have a bibliography created in BibDesk. I insert it in my .tex file > using \setupbibtex[database={IndexHag},sort=author] and with the other > commands I get my bibliography printed beautifully. I assign keywords in > BibDesk and they appear in a list in the .bbl file for example as > \keywords{Anderson, Columba, Colum Cille, Adamn{\'a}n, hagiography, > hagiographer, saints lives} > In the bibmod.pdf guide it says that > \keyword KEYWORD Just text (for use in indices) > \keywords KEYWORDS Just text (for use in indices) > > I have a very long bibliography and it would be great to automatically > generate indices based on the keywords that do not appear in the > bibliography itself. If this can be done can someone show me how to go > about that. That should be possible, using two stages. First you have to make sure that there is an \insertkeywords in each of the \setuppublicationlayout definitions that you are using (look into the bibl-xxx files for examples). Second you have to redefine \insertkeywords so that it does a bit more work than normal. Here is what it normally does: \unprotect \def\insertkeywords#1#2#3% {\bibdoifelse {\@@pb@keywords} {% keywords present #1\@@pb@keywords #2% } {#3}% no keywords } \protect If you change that to \unprotect \def\insertkeywords#1#2#3% {\bibdoifelse{\@@pb@keywords} {% #1\@@pb@keywords #2% \processcommacommand[\@@pb@keywords]\index } {#3}% } \protect it should create the indices you want, besides. This is untested, if it does not work you should send me a test file. Best wishes, Taco ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________