From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58670 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: simple bibliography and dots after section numbering Date: Tue, 11 May 2010 10:43:27 +0200 Message-ID: <4BE918AF.4@elvenkind.com> References: <20100505021244.GA2515@urvas> <20100506225220.GA24959@urvas> <20100509002118.GA2220@urvas> <4BE65304.9090006@elvenkind.com> <20100509175544.GA1849@urvas> <4BE7AF02.2050707@elvenkind.com> <4BE91749.8090600@wxs.nl> 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: dough.gmane.org 1273567419 26412 80.91.229.12 (11 May 2010 08:43:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 11 May 2010 08:43:39 +0000 (UTC) Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Tue May 11 10:43:36 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1OBl3w-0000md-Bd for gctc-ntg-context-518@m.gmane.org; Tue, 11 May 2010 10:43:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DE940C9CCC; Tue, 11 May 2010 10:43:35 +0200 (CEST) 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 O0cXPW+RES4S; Tue, 11 May 2010 10:43:32 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 645F8C9BC5; Tue, 11 May 2010 10:43:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D6E26C9BC5 for ; Tue, 11 May 2010 10:43:30 +0200 (CEST) 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 9kQ5NtgQikjj for ; Tue, 11 May 2010 10:43:28 +0200 (CEST) Original-Received: from smtp-vbr16.xs4all.nl (smtp-vbr16.xs4all.nl [194.109.24.36]) by balder.ntg.nl (Postfix) with ESMTP id A3012C9BBC for ; Tue, 11 May 2010 10:43:28 +0200 (CEST) Original-Received: from [192.168.178.26] (boo.demon.nl [83.163.247.99]) (authenticated bits=0) by smtp-vbr16.xs4all.nl (8.13.8/8.13.8) with ESMTP id o4B8hRZS081180; Tue, 11 May 2010 10:43:28 +0200 (CEST) (envelope-from taco@elvenkind.com) User-Agent: Thunderbird 2.0.0.23 (X11/20090822) In-Reply-To: <4BE91749.8090600@wxs.nl> X-Virus-Scanned: by XS4ALL Virus Scanner 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:58670 Archived-At: Hans Hagen wrote: > > a more mkiv-ish approach is: As even I don't quite understand this: could you or someone else perhaps illuminate this code with explanations? It would make an interesting article/wiki page, I think. Best wishes, Taco > \starttext > > % > % > % 3 > % Fri Jul 13 10:24:20 MDT 2007 > % Hans Hagen > % TUGboat > % {Visual Debugging in \TeX, Part 1: The > Story} > % 0896-3207 > % 1998 > % 311--317 > % 19 > % > % > > > \def\MF {MF} > \def\MP {MP} > \def\TUB {TUGboat} > \def\Mc {Mac} > \def\sltt{\tt} > \let\acro\firstofoneargument > > \usemodule[abr-01] > > \definebibtexsession [somebibtex] > > \registerbibtexfile [somebibtex] [tugboat.bib] > \registerbibtexfile [somebibtex] [komoedie.bib] > > \preparebibtexsession [somebibtex] % [convert] > > \startxmlsetups bibtex:one > \starttabulate[|Bl|p|] > \NC tag \NC \xmlatt{#1}{tag} \NC\NR > \NC author\NC \xmlfilter{#1}{/field[@name='author']/context()} \NC\NR > \NC title \NC \xmlfilter{#1}{/field[@name='title' ]/context()} \NC\NR > \stoptabulate > \stopxmlsetups > > \startxmlsetups bibtex:bibtex > \xmlfilter{#1}{ > /entry[@category='article'] > /field[@name='author' and (find(text(),'Hans Hagen') > or find(text(),'Taco Hoekwater'))] > /../command(bibtex:one) > } > \stopxmlsetups > > \applytobibtexsession[somebibtex][bibtex] > > \page > > \startxmlsetups bibtex:entry:getkeys > \xmladdsortentry{bibtex}{#1} > {\xmlfilter{#1}{/field[@name='author']/text()}} > \xmladdsortentry{bibtex}{#1} > {\xmlfilter{#1}{/field[@name='year' ]/text()}} > \xmladdsortentry{bibtex}{#1} > {\xmlatt{#1}{tag}} > \stopxmlsetups > > \startxmlsetups xml:bibtex:sorter > \xmlresetsorter{bibtex} > % \xmlfilter{#1}{entry/command(bibtex:entry:getkeys)} > \xmlfilter{#1}{ > bibtex > /entry[@category='article'] > /field[@name='author' and find(text(),'Knuth')] > /../command(bibtex:entry:getkeys)} > \xmlsortentries{bibtex} > \xmlflushsorter{bibtex}{bibtex:entry:flush} > \stopxmlsetups > > \startxmlsetups bibtex:entry:flush > \xmlfilter{#1}{/field[@name='author']/context()} / % > \xmlfilter{#1}{/field[@name='year' ]/context()} / % > \xmlatt{#1}{tag}\par > \stopxmlsetups > > \xmlsetup{bibtex:somebibtex}{xml:bibtex:sorter} > > \stoptext > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 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 ___________________________________________________________________________________