From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29994 Path: news.gmane.org!not-for-mail From: David Arnold Newsgroups: gmane.comp.tex.context Subject: Re: \in Date: Fri, 4 Aug 2006 17:48:59 -0700 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: multipart/mixed; boundary="===============1188604984==" X-Trace: sea.gmane.org 1154739046 32631 80.91.229.2 (5 Aug 2006 00:50:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 5 Aug 2006 00:50:46 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 05 02:50:39 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 1G9ANC-00040S-2l for gctc-ntg-context-518@m.gmane.org; Sat, 05 Aug 2006 02:50:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C86751FF3F; Sat, 5 Aug 2006 02:50: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 22258-01; Sat, 5 Aug 2006 02:50:30 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9817D1FF60; Sat, 5 Aug 2006 02:50:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D74B31FF60 for ; Sat, 5 Aug 2006 02:50:28 +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 22085-03-3 for ; Sat, 5 Aug 2006 02:50:27 +0200 (CEST) Original-Received: from fed1rmmtao07.cox.net (fed1rmmtao07.cox.net [68.230.241.32]) by ronja.ntg.nl (Postfix) with SMTP id 3872D1FF3F for ; Sat, 5 Aug 2006 02:50:26 +0200 (CEST) Original-Received: from [10.0.1.2] (really [70.191.56.23]) by fed1rmmtao07.cox.net (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with ESMTP id <20060805005025.QFLQ1537.fed1rmmtao07.cox.net@[10.0.1.2]> for ; Fri, 4 Aug 2006 20:50:25 -0400 In-Reply-To: <44D3E9EA.6010304@nibua-r.org> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.752.2) 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:29994 Archived-At: --===============1188604984== Content-Type: multipart/alternative; boundary=Apple-Mail-1-338080953 --Apple-Mail-1-338080953 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed A partial answer: \definereferenceformat[infigure][text=Figure] \definereferenceformat[infigures][text=Figures] \definereferenceformat[intable][text=Table] \definereferenceformat[intables][text=Tables] \definereferenceformat[insection][text=Section] \definereferenceformat[inequation][left=(,right=),text=equation] \definereferenceformat[inexample][text=Example] \definereferenceformat[indefinition][text=Definition] Then, in \inequation[eq:newton], we see ... On Aug 4, 2006, at 5:44 PM, 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] > > Moreover, how could I set the face of the output ? > > Cheers, > > Renaud > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context --Apple-Mail-1-338080953 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=US-ASCII A partial answer:

\definereferenceformat[infigu= re][text=3DFigure]
\definereferenceformat[infigures][text=3DFigu= res]
\definereferenceformat[intable][text=3DTable]
\de= finereferenceformat[intables][text=3DTables]
\definereferencefor= mat[insection][text=3DSection]
\definereferenceformat[inequation= ][left=3D(,right=3D),text=3Dequation]
\definereferenceformat[ine= xample][text=3DExample]
\definereferenceformat[indefinition][tex= t=3DDefinition]

Then, in = \inequation[eq:newton], we see ...

On Aug 4, = 2006, at 5:44 PM, 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]

= Moreover, how could I set the face of the output ?

Cheers,
=
Renaud
ntg-context mailing list
=

= --Apple-Mail-1-338080953-- --===============1188604984== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============1188604984==--