From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29999 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: Re: \in Date: Sat, 5 Aug 2006 14:20:14 +0200 Message-ID: References: <44D3E9EA.6010304@nibua-r.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154780511 19105 80.91.229.2 (5 Aug 2006 12:21:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 5 Aug 2006 12:21:51 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 05 14:21:49 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 1G9LA5-0003g8-Kn for gctc-ntg-context-518@m.gmane.org; Sat, 05 Aug 2006 14:21:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DC70A1FF42; Sat, 5 Aug 2006 14:21:48 +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 30140-06; Sat, 5 Aug 2006 14:21:39 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 669AA1FF30; Sat, 5 Aug 2006 14:21:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BC2041FF30 for ; Sat, 5 Aug 2006 14:21:37 +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 32014-01 for ; Sat, 5 Aug 2006 14:21:33 +0200 (CEST) Original-Received: from smtp.science.uva.nl (smtp.science.uva.nl [146.50.4.84]) by ronja.ntg.nl (Postfix) with SMTP id 7FC8D1FF27 for ; Sat, 5 Aug 2006 14:21:33 +0200 (CEST) Original-Received: from 118-162.uva.surfnetthuis.nl [145.98.118.162] by smtp.science.uva.nl with ESMTP (sendmail 8.11.6p2/config 11.36). id k75CLT904511; Sat, 5 Aug 2006 14:21:29 +0200 X-Organisation: Faculty of Science, University of Amsterdam, The Netherlands X-URL: http://www.science.uva.nl/ In-Reply-To: Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: by amavisd-new 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:29999 Archived-At: On Aug 5, 2006, at 6:10, Aditya Mahajan wrote: > On Sat, 5 Aug 2006, Renaud AUBIN wrote: > >> Hi all, >> >> Is that possible to setup the \in command to obtain: >> - \in[fig:fig_ref] returns figure 1.1 >> - \in[eq:eq_ref] returns (1.1) >> _ \in[sec:sec_ref] returns section 2.1 >> >> Up to now I have used: >> - \in{figure}[fig:fig_ref] >> - \in{(}{)}[eq_eq_ref] (but there is an extra h space just after >> "(" ) >> - \in{section}[sec_sec_ref] > > Here is a very simple mechanism, I do not take > care of all the bells and whistles [1] of \in. > I wrestled with the same problem and solved it by calling specifically \ineq for equations and programming it as: % Parenthesized equation references \definereferenceformat[ineq][left=(,right=)] Hans van der Meer