From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47058 Path: news.gmane.org!not-for-mail From: "J.A.J. Pater" Newsgroups: gmane.comp.tex.context Subject: Re: BibTeX in ConTeXt natbib style Date: Tue, 27 Jan 2009 15:18:44 +0100 Message-ID: <497F17C4.3050505@gmail.com> References: <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 1233066108 29476 80.91.229.12 (27 Jan 2009 14:21:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2009 14:21:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 27 15:23:02 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 1LRopz-0007G8-A0 for gctc-ntg-context-518@m.gmane.org; Tue, 27 Jan 2009 15:22:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BE11A1FC3E; Tue, 27 Jan 2009 15:21:25 +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 05179-06; Tue, 27 Jan 2009 15:19:43 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4F8E91FC16; Tue, 27 Jan 2009 15:19:43 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 15A791FC16 for ; Tue, 27 Jan 2009 15:19:42 +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 05260-01-3 for ; Tue, 27 Jan 2009 15:18:49 +0100 (CET) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by ronja.ntg.nl (Postfix) with ESMTP id BAB641FBB9 for ; Tue, 27 Jan 2009 15:18:49 +0100 (CET) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by filter1-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0REIlVc004614 for ; Tue, 27 Jan 2009 15:18:48 +0100 Original-Received: by nf-out-0910.google.com with SMTP id c10so1000659nfd.44 for ; Tue, 27 Jan 2009 06:18:47 -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:references:in-reply-to :content-type:content-transfer-encoding; bh=llKG73jg4SPTe/Q1jz1zBtBPAL9zCMylsoeNEREuYBo=; b=BBgPyJVxAQKOMUK+340YEDdctyffbAOKt0hPiYWIXfSGSwQDS5RjrGPY825eM3cwEr 2o1dKQ1Opc15jZEq5CJCf/pPUQhJBhy7cVWa1xv4Dz0tJLg89A7ZbpgSSu4MxoNngroW resK9b+o7xlWM3GQKRw/GMaSn31NYlfh19dJM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=RF/ODsfMsNC+L8bye8smxqD2ujs5I0Apnb/MZIorAP2d+tYNQ9Hm4bcfkz3yZfvL/x 1/riUlUvZtXy+ShlS7MDI1jLMPuLQU3QRa5OZui/FpAq6jcBHBPzmliQXN0ITJatK7o5 9CWEcAuG1sWeospWHzn1ctSkdAvmIYmutfwFw= Original-Received: by 10.210.111.17 with SMTP id j17mr1161742ebc.115.1233065927756; Tue, 27 Jan 2009 06:18:47 -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 b36sm24501673ika.7.2009.01.27.06.18.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 27 Jan 2009 06:18:46 -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 In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=64.233.182.191; 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: 171170326 - d1c15aedb5d7 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 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:47058 Archived-At: Thanks a lot! How can I have missed that ... it's in the wiki... > On Tue, 27 Jan 2009, J.A.J. Pater wrote: > >> In LaTeX when using the natbib package I can use: >> >> \citet[p. 113]{Bell1992} to get: "Bell (1992, p.\ 112)" > > \cite[alternative=authoryear, extras={, p. 112}][Bell1992] > >> \cite[p. 113]{Bell1992} to get: "(Bell, 1992, p. 112)" > > \cite[alternative=authoryears, extras={, p.\ 113}][Bell1992] > > Aditya > >> 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 >> ___________________________________________________________________________________ >> >> >> >> > ___________________________________________________________________________________ > > 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 > ___________________________________________________________________________________ > > ___________________________________________________________________________________ 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 ___________________________________________________________________________________