From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80256 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Bibliography in authornum format Date: Mon, 14 Jan 2013 13:10:25 -0500 (EST) Message-ID: References: <50F42E5A.3090809@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1358187037 29157 80.91.229.3 (14 Jan 2013 18:10:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2013 18:10:37 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 14 19:10:55 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TuoUo-00007c-Bi for gctc-ntg-context-518@m.gmane.org; Mon, 14 Jan 2013 19:10:54 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CBA3B101EA; Mon, 14 Jan 2013 19:10:37 +0100 (CET) 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 P+XjAlUDOfRu; Mon, 14 Jan 2013 19:10:35 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B3DEB101E5; Mon, 14 Jan 2013 19:10:35 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 99D5F101E5 for ; Mon, 14 Jan 2013 19:10:34 +0100 (CET) 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 DY0ZZA6XC9vi for ; Mon, 14 Jan 2013 19:10:30 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id D15EB101E2 for ; Mon, 14 Jan 2013 19:10:30 +0100 (CET) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0EIARH2002450 for ; Mon, 14 Jan 2013 19:10:29 +0100 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By hellskitchen.mr.itd.umich.edu ID 50F44A12.9D302.20163 ; Authuser adityam; 14 Jan 2013 13:10:26 EST In-Reply-To: <50F42E5A.3090809@gmail.com> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.82; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RILSasDg - b371c2a76731 - 20130114 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:80256 Archived-At: On Mon, 14 Jan 2013, Devendra Ghate wrote: > I am using ConTeXt ver: 2013.01.10 01:04 MKIV and here is the MWE. > > I would like to create numbered bibliography with *Author name [1]* format. > If multiple authors are present then it should produce *Author /et al./ [1]*. > This does not happen. Instead I get *Author, [1]*. Since I am new to ConTeXt, > I might be making a basic mistake. > Devendra > --------------- > \setupbibtex[database={bib}] > % As suggested by Aditya on TEX SX. > \setuppublications[alternative=num, refcommand=authornum] > \starttext > I am refering to \cite{me13} . > \placepublications[criterium=text] > \stoptext > ---------------- > bib.bib > ---------------- > @article{me13, > title = {This bibliography in context}, > author = {Convert, Recent and User, Power and Fiddler, Amateur}, > journal = {Tex SX}, > volume = {1}, > number = {1}, > pages = {1-11}, > year = {2013}, > } > --------------- As I had explained in http://tex.stackexchange.com/a/93743/323, the definition of \bibauthornumref needs to be updated to: \def\dobibauthornumref#1% {\bibinsertrefsep \doifbibreferencefoundelse{#1} {\begingroup \cite[left=,right=,alternative=author][#1]% \bibalternative\c!inbetween \cite[num][#1]% \endgroup} {}} Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________