From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32763 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: multiple bibliographies Date: Mon, 15 Jan 2007 15:55:42 +0000 Message-ID: References: <0B8376D1-0936-4850-A849-202F189C3646@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" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1168889832 6367 80.91.229.12 (15 Jan 2007 19:37:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 Jan 2007 19:37:12 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 15 20:37:10 2007 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 1H6W7n-0003ll-6e for gctc-ntg-context-518@m.gmane.org; Mon, 15 Jan 2007 19:00:03 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 90A2C1FFE8; Mon, 15 Jan 2007 16:51:51 +0100 (CET) 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 03709-03-5; Mon, 15 Jan 2007 16:51:46 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9B7711FFF7; Mon, 15 Jan 2007 16:51:46 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B56E01FFFF for ; Mon, 15 Jan 2007 16:51:43 +0100 (CET) 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 03417-07-4 for ; Mon, 15 Jan 2007 16:51:38 +0100 (CET) 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 ESMTP id 00EDF1FFF4 for ; Mon, 15 Jan 2007 16:51:37 +0100 (CET) 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 1H6UBT-00059s-13; Mon, 15 Jan 2007 15:55:43 +0000 Original-Received: from sanjoy by skye.ra.phy.cam.ac.uk with local (Exim 3.36 #1) id 1H6UBS-0000RL-00; Mon, 15 Jan 2007 15:55:42 +0000 Original-To: mailing list for ConTeXt users In-Reply-To: Your message of "Mon, 15 Jan 2007 14:22:13 +0100." <0B8376D1-0936-4850-A849-202F189C3646@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:32763 Archived-At: "Thomas A. Schmitz" explains: > Yes, this is possible. Just make every lecture its own section, refer > to the titles you want included in every list with \nocite commands > at the beginning of every section, have the list typeset with > \placepublications[criterium=cite]. If you want continuous numbering > for all your lists, add [option=continue]. That's very helpful. I was going to ask the same question in a month or so when I might arrange the references in my math textbook that way. Here's an example file that I'll wikify if a similar example isn't there already and no one finds problems with it. Note in passing: \placepublications[criterium=section] and \placepublications[criterium=cite] should (and do) give the same results in the further-reading section. Taco, For a rainy day, what about \setuppublications[option=continue] that implicitly appends option=continue to all but the first \placepublications commands? (If it does so for the first one then the numbering starts from 37 or thereabouts, as I found out by trying it.) -Sanjoy `Not all those who wander are lost.' (J.R.R. Tolkien) ========================= nocite.tex ============================= % Example of per-chapter bibliographies and a per-chapter 'Further % reading' section. % % 2007-01-15: % Written by Sanjoy Mahajan based on the % explanation by Thomas Schmitz ('multiple bibliographies', % ntg-context list, 15 Jan 2007). % % Public domain. % \usemodule[bib] \usemodule[bibltx] \setuppublications[alternative=num] \setupbibtex[database=xampl] \starttext \chapter{One} Some useful references are \cite[article-minimal]. See \cite[article-full] for the full bibliography info. \section[sec:further]{Further reading} \nocite[whole-journal,incollection-full] If you are curious, here are a few further readings: \bigskip % criterium=section and =cite give the same results in this case situation \placepublications[criterium=section] %\placepublications[criterium=cite] \section{Chapter references} Here are all the references from this chapter, including the `further reading'. \bigskip \placepublications[criterium=chapter,option=continue] \chapter{Two} \cite[inbook-crossref] is a classic. People should also read \cite[book-minimal] but it can be rough going. \section{Chapter references} Here are the references from this chapter. \bigskip \placepublications[criterium=chapter,option=continue] \title{References for the whole document} Here are the references from the entire document: in all chapters and including the further reading. \bigskip \placepublications[criterium=all,option=continue] \stoptext ===============================================================