From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47054 Path: news.gmane.org!not-for-mail From: "J.A.J. Pater" Newsgroups: gmane.comp.tex.context Subject: BibTeX in ConTeXt natbib style Date: Tue, 27 Jan 2009 14:51:40 +0100 Message-ID: <497F116C.8080003@gmail.com> 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 1233064478 23603 80.91.229.12 (27 Jan 2009 13:54:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2009 13:54:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 27 14:55:52 2009 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 1LRoPt-0005PZ-MP for gctc-ntg-context-518@m.gmane.org; Tue, 27 Jan 2009 14:55:49 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 52EF91FBCC; Tue, 27 Jan 2009 14:54:27 +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 00029-01-3; Tue, 27 Jan 2009 14:52:53 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 34DD11FB8F; Tue, 27 Jan 2009 14:52:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 97AD61FB8F for ; Tue, 27 Jan 2009 14:52: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 00029-01-2 for ; Tue, 27 Jan 2009 14:51:48 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by ronja.ntg.nl (Postfix) with ESMTP id 3B5981FB77 for ; Tue, 27 Jan 2009 14:51:48 +0100 (CET) Original-Received: from mail-ew0-f13.google.com (mail-ew0-f13.google.com [209.85.219.13]) by filter4-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0RDpkgh020231 for ; Tue, 27 Jan 2009 14:51:47 +0100 Original-Received: by ewy6 with SMTP id 6so7782441ewy.2 for ; Tue, 27 Jan 2009 05:51:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=0ZoRcDH+eXjg/SMVw7lDmbZ432OksTLOJmhHXq7p/wI=; b=gaQ16kfze6jFgUPoacOgxHQFHfA/7cd6JTpDm22Qvx7zhxKtJOhYDN19qgoqX9MUDC rDAMOc8OmNco4aZGJERhaI8g32VpQXEY+E0ZXwOnBV1Tr6R0vRNX8rlA1+6pguQbvCbj itCc8bqSSZdnqwMhixtxyMyhmSJeSxklAUo60= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=R+Afu6hfrWwClP5SjvZ1jWOcMPcBRSQ0UGoONonkjAvuDUOme1Rl7OAcjXNnrIt7Hk TooSvnoDsQnPhDqEx5Yf0/GLpOgcrlBjJEkEFF8biLF93HYm4I2RBKerCSdx1NJEFong nxhftTvoPLk4K53D5Fk4wsWxdV5g98liuQkwc= Original-Received: by 10.210.118.7 with SMTP id q7mr1138004ebc.138.1233064305506; Tue, 27 Jan 2009 05:51:45 -0800 (PST) Original-Received: from ?192.168.2.100? (dsl-087-195-001-137.solcon.nl [87.195.1.137]) by mx.google.com with ESMTPS id z33sm6944501ikz.11.2009.01.27.05.51.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 27 Jan 2009 05:51:44 -0800 (PST) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20090105 Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.5.0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.219.13; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 171136727 - 64b832adb7a3 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:47054 Archived-At: In LaTeX when using the natbib package I can use: \citet[p. 113]{Bell1992} to get: "Bell (1992, p. 112)" \cite[p. 113]{Bell1992} to get: "(Bell, 1992, p. 112)" Trying to do this in ConTeXt I came up with this: \setupcite [author][left=,right=] \setupcite [year][left=,right=] \def\CiteP#1#2% {(\cite[author][{#2}]% ,\ \cite[year][{#2}]% ,\ {#1} )} \CiteP{p. 13}{article-full} And: \def\CiteA#1#2% {\cite[author][{#2}]% \ (\cite[year][{#2}]% ,\ {#1} )} \CiteA{p. 13}{article-full} It works alright, but it seems rather crude to me. Is there a more elegant way? Or maybe more to the point: a way in which I do not have to use \setupcite? Thanks in advance, Adriaan. P.S. I made my first contribution to the wiki: http://wiki.contextgarden.net/Version_Control ___________________________________________________________________________________ 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 ___________________________________________________________________________________