From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/53060 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: Need help with bibliography Date: Mon, 21 Sep 2009 09:54:25 +0200 Message-ID: <4AB73131.7060701@elvenkind.com> References: <86d68cc30909200430s61aaf373h7f990791689f956b@mail.gmail.com> <86d68cc30909201541s550ab8e0m728a92691d1a9ab3@mail.gmail.com> <00B0826D-5642-4A08-BEB4-58333C66BE86@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 1253519690 9271 80.91.229.12 (21 Sep 2009 07:54:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Sep 2009 07:54:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 21 09:54:43 2009 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 1MpdjO-00034Y-8r for gctc-ntg-context-518@m.gmane.org; Mon, 21 Sep 2009 09:54:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1B8AAC9A47; Mon, 21 Sep 2009 09:54:40 +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 3fLMSBsvTmhv; Mon, 21 Sep 2009 09:54:39 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 98D59C9A90; Mon, 21 Sep 2009 09:54:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6F55AC9A90 for ; Mon, 21 Sep 2009 09:54:32 +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 m804pd-ril6d for ; Mon, 21 Sep 2009 09:54:26 +0200 (CEST) Original-Received: from smtp-vbr17.xs4all.nl (smtp-vbr17.xs4all.nl [194.109.24.37]) by balder.ntg.nl (Postfix) with ESMTP id 76BF1C9A47 for ; Mon, 21 Sep 2009 09:54:26 +0200 (CEST) Original-Received: from [192.168.178.26] (boo.demon.nl [82.161.175.147]) (authenticated bits=0) by smtp-vbr17.xs4all.nl (8.13.8/8.13.8) with ESMTP id n8L7sPn1067887 for ; Mon, 21 Sep 2009 09:54:26 +0200 (CEST) (envelope-from taco@elvenkind.com) User-Agent: Thunderbird 2.0.0.21 (X11/20090330) In-Reply-To: <00B0826D-5642-4A08-BEB4-58333C66BE86@uni-bonn.de> 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:53060 Archived-At: Thomas A. Schmitz wrote: > > On Sep 21, 2009, at 12:41 AM, Mika Ritola wrote: > >> I'll try to give a clearer explanation. First of all, when I cite a >> source using e.g. \cite[Smith2000], this should appear in the text as >> "Smith 2000". I've already managed to do this. Now, each entry in the >> bibliography should begin with the same string that was used to >> identify it within the text. So, the above example should look >> something like this: >> >> Smith 2000John Smith. Generic Book Title. Whatever Publishing >> Company, New York 2000. >> >> I know I can get the "John Smith" by using \insertauthors in >> \setuppublicationlayout. But how do I get just the last name? The >> answer is probably so simple that I should be ashamed that I can't >> figure it out by myself but I haven't quite gotten the hang of ConTeXt >> and TeX yet... > > Ah, so it turns out you're looking for something else altogether. In > your case, you want a special kind of label for your bibliographic list. > See if Aditya's hack gives the result you want. But generally speaking, > I think your setup is pretty common in the humanities, so it should be > added as a key to the processactionlist in l. 308-316 of bibl-tra.mkiv. > Hans, Taco, is there a proper syntax for getting the lastname and year > of the current bib item? The best approach may be to put the lastname+space+year in the 's' key, and use \setuppublications[refcommand=short, numbering=short] Best wishes, Taco ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________