From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30715 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: YABQ (yet another bib question...) Date: Fri, 08 Sep 2006 23:40:49 +0100 Message-ID: References: <16B85C12-BE15-47A5-A688-547627B06865@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1157755293 20179 80.91.229.2 (8 Sep 2006 22:41:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Sep 2006 22:41:33 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 09 00:41:30 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 1GLp2I-0001R1-88 for gctc-ntg-context-518@m.gmane.org; Sat, 09 Sep 2006 00:41:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6FAD51FE16; Sat, 9 Sep 2006 00:41:21 +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 10611-04; Sat, 9 Sep 2006 00:41:12 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 280BB1FDCC; Sat, 9 Sep 2006 00:41:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 11C921FDCC for ; Sat, 9 Sep 2006 00:41:08 +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 11274-02 for ; Sat, 9 Sep 2006 00:40:59 +0200 (CEST) Original-Received: from mraos.ra.phy.cam.ac.uk (mraos.ra.phy.cam.ac.uk [131.111.48.8]) by ronja.ntg.nl (Postfix) with SMTP id 324D61FD4E for ; Sat, 9 Sep 2006 00:40:57 +0200 (CEST) Original-Received: from skye.ra.phy.cam.ac.uk ([131.111.48.158] ident=mail) by mraos.ra.phy.cam.ac.uk with esmtp (Exim 4.43) id 1GLp1r-0000zo-0l; Fri, 08 Sep 2006 23:40:55 +0100 Original-Received: from sanjoy by skye.ra.phy.cam.ac.uk with local (Exim 3.36 #1) id 1GLp1l-0001Nk-00; Fri, 08 Sep 2006 23:40:49 +0100 Original-To: mailing list for ConTeXt users In-Reply-To: Your message of "Fri, 08 Sep 2006 22:53:01 +0200." <16B85C12-BE15-47A5-A688-547627B06865@uni-bonn.de> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:30715 Archived-At: > Is it possible to refer back to item [1] automatically, by sticking > the "reprinted in" in a "note" field in the database? I tried a > number of combinations of \crossref or so, but couldn't get this to > work. I need to repeat my experiments, but I think it worked to use simply \cite in the bibtex entry. Ah, here is one example. It uses xampl.bib, which comes with old distributions of ConTeXt (e.g. teTeX 3.0's distribution). [Taco: The reference to Knuth below comes out as (Knuth, 1981c) even though there are no other 1981 entries for Knuth cited in the text. Is that hard to fix given ConTeXt's way of dealing with bibtex, in that it just incorporates the entire database, in which there are several 1981 entries from Knuth?] ===================== cut here ======== \usemodule[bib] \usemodule[bibltx] \setupbibtex[database=xampl] \starttext Here is a citation to a book that contains a cross reference: \cite[book-crossref]. The bibliography entry (next page) for it should contain a bib reference to another item in the bibliography. \completepublications \stoptext ===================== cut here ======== Here are the relevant entries from xampl.bib, which indicates that it's the crossref= line that you need (not \cite as I said above)v: @BOOK{book-crossref, crossref = "whole-set", title = "Seminumerical Algorithms", volume = 2, series = "The Art of Computer Programming", edition = "Second", year = "{\noopsort{1973c}}1981", note = "This is a cross-referencing BOOK entry", } @BOOK{whole-set, author = "Donald E. Knuth", publisher = "Addison-Wesley", title = "The Art of Computer Programming", series = "Four volumes", year = "{\noopsort{1973a}}{\switchargs{--90}{1968}}", note = "Seven volumes planned (this is a cross-referenced set of BOOKs)", } -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.