From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/28795 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: reference formatting Date: Fri, 23 Jun 2006 10:43:48 -0400 (EDT) Message-ID: References: <1A225B6D-F10C-49B1-BBF1-A3FF63C49975@science.uva.nl> <184E4960-99BB-4926-8048-F085173EAC17@science.uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1151073966 16865 80.91.229.2 (23 Jun 2006 14:46:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Jun 2006 14:46:06 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 23 16:46:04 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1Ftmut-0001O0-9D for gctc-ntg-context-518@m.gmane.org; Fri, 23 Jun 2006 16:45:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7385D12853; Fri, 23 Jun 2006 16:45:51 +0200 (CEST) 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 24644-06; Fri, 23 Jun 2006 16:45:51 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BEE901284A; Fri, 23 Jun 2006 16:43:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EA9E11284A for ; Fri, 23 Jun 2006 16:43:55 +0200 (CEST) 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 24644-05 for ; Fri, 23 Jun 2006 16:43:54 +0200 (CEST) Original-Received: from skycaptain.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.160]) by ronja.ntg.nl (Postfix) with SMTP id 31CCE127F6 for ; Fri, 23 Jun 2006 16:43:53 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY skycaptain.mr.itd.umich.edu ID 449BFE26.7B9D8.17163 ; 23 Jun 2006 10:43:51 -0400 Original-To: mailing list for ConTeXt users In-Reply-To: <184E4960-99BB-4926-8048-F085173EAC17@science.uva.nl> 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:28795 Archived-At: On Fri, 23 Jun 2006, Hans van der Meer wrote: > > On Jun 22, 2006, at 23:13, Aditya Mahajan wrote: > >> >> >> On Thu, 22 Jun 2006, Hans van der Meer wrote: >> >>> With \definereferenceformat[pin][left=(,right=)] it is possible to >>> typeset >>> references with >>> \pin[ref] and get "(ref)" >>> >>> I have two questions in this respect: >>> >>> 1. is it possible to change the general setup in the same way, >>> e.g. let \in[ref] do the same as \pin[ref] here. >>> The left and right are not in setupreferencing. >> > > I finally came up with this, a bit of a kludge I admit: > \let\originalin=\in > \definereferenceformat[parenthesizedin][left=(,right=),command= > \originalin] > \let\in=\parenthesizedin Be careful with this. There are two places in the source that use \in command. You will get parenthesis around them also. If you do not use those commands (\inline and I do not remember the second one, I checked that yesterday), then even \definereferenceformat[in][left=(,right=)] should work. >>> 2. some strange interchange takes place when using \pin{A}{B}[ref]. >>> Instead of the expected "A (ref) B" one gets "A (refB); >>> it therefore seems the right parenthesis from the setup comes too >>> late in play. >> >> As I understand referencing, this is the expected behaviour. I think >> that \in{..}{..}[...] was for things like >> >> As seen in \in{Figure}{a}[fig]... >> >> that is when you want to refer to a subfigure (or a subformula). >> That is >> why there is no space between the number and the content in the second >> {..} >> > > I has not understood it that way, but thought it was meant to enclose > the whole reference. I see the point now. > > Hans van der Meer > > > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > > > -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008