From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/541 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Bibtex and context? Date: Fri, 11 Jun 1999 22:08:55 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <37616CD7.D27DAA7D@wxs.nl> References: <375FB5CF.F0EA300F@gmd.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035391396 24933 80.91.224.250 (23 Oct 2002 16:43:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:43:16 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Matthew Baker Xref: main.gmane.org gmane.comp.tex.context:541 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:541 Hi Matthew, > Does Context have a bibliography mechanism? I don't recall reading > anything about it in the doco. More specifically, is there any way of > getting my bibtex entries in? I think this is the last requirement for > my total replacement of latex with context (apart from more mathematics > macros, which has already been discussed.) > > I've done a bit of bst file editing before. I guess appropriate bst > files > are all that are needed to put bibtex-generated entries into context > files. > I could have a crack at this, if it hasn't been done already. It's > probably about time I put something back in ;P Some time ago I defined a general mechanism for collection sof sorted things, using existing mechanisms. I'll send you the test file (which defines some macros you need) It comes down to something: % definition with two sort keys \definesortset [somepublication] [author,title] [ type=article, author=,title=, journal=,volume=,number=,pages=,year=, edition=, note=,URL=] % when called by author or title: \definesortsetitem [publication][somepublication][author] [(\field{author})] \definesortsetitem [publication][somepublication][title] [(\field{title}, by \field{author})] % or by number as typeset in the list \definesortsetreference [someone][somepublication][{[\fieldnum]}] [\FinalPublicationList] % using a macro: \def\FinalPublicationList% {[\fieldnum]\spatie \doif{\field{type}}{article} {\doifsomething{\field{author}}{\field{author},\spatie}% \doifsomething{\field {title}}{{\sl\field{title}}.\spatie}% \doifsomething{\field {year}}{(\field{year}).\spatie}} \par} % the list itself \definesortsetlist [publicationsbyauthor][somepublication][author][criterium=alles] % some definitions \somepublication [hagenj-tt,thisthat] [author={Hagen, J}, title={This or That}] \somepublication [ottenaf-ss,suchso] [author={Otten, A.F.}, title={Such and So}] \somepublication [hagenj-ht,herethere] [author={Hagen, J}, title={Here and There}] \somepublication [ottenaf-tt,thickthin] [author={Otten, A.F.}, title={Thick and Thin}] % a sample \starttekst test \publication[author][ottenaf-tt] test \publication[title][hagenj-tt] test \someone[ottenaf-ss] test \someone[hagenj-ht] \publicationsbyauthor \stoptekst So, what we need is a few perl scripts converting existing bib things into this scheme. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl -----------------------------------------------------------------