From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55811 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: bib in mkiv Date: Tue, 26 Jan 2010 19:43:59 +0100 Message-ID: <4B5F37EF.1030009@wxs.nl> References: <4B5F0129.4020400@wxs.nl> <59BB7BCC-0ACB-40A2-B604-220E8AE6DFC9@uni-bonn.de> 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 1264531494 14255 80.91.229.12 (26 Jan 2010 18:44:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Jan 2010 18:44:54 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 26 19:44:46 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NZqP8-0005wE-CY for gctc-ntg-context-518@m.gmane.org; Tue, 26 Jan 2010 19:44:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A0537C9CA9; Tue, 26 Jan 2010 19:44:56 +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 WdvO7H+oGQ0h; Tue, 26 Jan 2010 19:44:56 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 355AAC9CA5; Tue, 26 Jan 2010 19:44:27 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 40295C9CA6 for ; Tue, 26 Jan 2010 19:44:25 +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 TmxCaGMf94NR for ; Tue, 26 Jan 2010 19:44:22 +0100 (CET) Original-Received: from mail.solcon.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by balder.ntg.nl (Postfix) with ESMTP id 8C360C9CA5 for ; Tue, 26 Jan 2010 19:44:22 +0100 (CET) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-9 (SurgeMail 4.2d2) with ESMTP id 299-1713362 for multiple; Tue, 26 Jan 2010 19:43:57 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1 In-Reply-To: X-Authenticated-User: hagen@controller-9 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:55811 Archived-At: On 26-1-2010 19:25, Aditya Mahajan wrote: > On Tue, 26 Jan 2010, Thomas A. Schmitz wrote: > >> >> On Jan 26, 2010, at 3:50 PM, Hans Hagen wrote: >> >>>> so it looks like it's interpreting the \nocite[*] literally. Any >>>> thoughts on this? >>> >>> not that many as you forgot to tell what the * is supposed to do -) >> >> :-) It's supposed to include everything, i.e. all the references in >> the bbl. > > \nocite is a bibtex kludge. Could we implement this feature in MkIV > using a different syntax, maybe > > \placepublications[critirium=database] > > or some key in \setuppublications. makes sense; an alternative is to map rendering on the newer methods as thomas likes to use xml .... here's a test file \dontcomplain \def\MF {MF} \def\MP {MP} \def\TUB{TUGboat} \def\Mc {Mac} \def\sltt{\tt} \def\acro#1{#1} \usemodule[abr-01] \startxmlsetups bibtex % todo: messy \xmlregistereddocumentsetups{#1}{} \xmlsetsetup{#1}{bibtex|c|e|v}{bibtex:*} \xmlmain{#1} \stopxmlsetups % \xmlregisterdocumentsetup{bibtex:somebibtex}{bibtex:main} \startxmlsetups bibtex:bibtex \xmlfilter{#1}{e/v[@n=='author' and find(text(),'Hans Hagen') or find(text(),'Taco Hoekwater')]/../command(bibtex:one)} \stopxmlsetups \startxmlsetups bibtex:c \stopxmlsetups \startxmlsetups bibtex:e \stopxmlsetups % \startxmlsetups bibtex:v % \xmlflushcontext{#1} % \stopxmlsetups \startxmlsetups xml:bibtex:sorter \xmlresetsorter{bibtex} \xmlfilter{#1}{e/command(bibtex:entry:getkeys)} \blank sortkeys: \blank\xmlshowsorter{bibtex}\blank \xmlsortentries{bibtex} \xmlflushsorter{bibtex}{bibtex:entry:flush} \stopxmlsetups \startxmlsetups bibtex:entry:getkeys \xmladdsortentry{bibtex}{#1}{\xmlfilter{#1}{/v[@n=='author']/text()}} \xmladdsortentry{bibtex}{#1}{\xmlfilter{#1}{/v[@n=='year']/text()}} \xmladdsortentry{bibtex}{#1}{\xmlatt{#1}{n}} \stopxmlsetups \startxmlsetups bibtex:one \starttabulate \NC id \NC \xmlatt{#1}{n} \NC \NR \NC author \NC \xmlfilter{#1}{/v[@n=='author']/context()} \NC \NR \NC title \NC \xmlfilter{#1}{/v[@n=='title']/context()} \NC \NR \stoptabulate \stopxmlsetups \startxmlsetups bibtex:entry:flush \xmlfilter{#1}{/v[@n=='author']/context()} / % \xmlfilter{#1}{/v[@n=='year']/context()} / % \xmlatt{#1}{n}\par \stopxmlsetups \starttext \definebibtexsession [somebibtex] % \registerbibtexentry [somebibtex][Hagen:TB26-2-152] \registerbibtexfile [somebibtex][tugboat.bib] \registerbibtexfile [somebibtex][komoedie.bib] % \registerbibtexentry [somebibtex][Hagen:TB26-2-152] \preparebibtexsession[somebibtex] \applytobibtexsession[somebibtex][bibtex] \xmlsetup{bibtex:somebibtex}{xml:bibtex:sorter} \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________