* How to add () to equation number?
@ 2000-06-05 14:01 Mr. Wang Lei
2000-06-06 15:01 ` Mr. Wang Lei
0 siblings, 1 reply; 3+ messages in thread
From: Mr. Wang Lei @ 2000-06-05 14:01 UTC (permalink / raw)
Hi, I want put the equation numbers into a pair of ( )
when refering them. For example, if I have writtten
a formula numbered 1.1 and labeled [eq:number1], then when
I use \in[eq:number1], I want get (1.1) other than
1.1 . I knew put the \in[..] into (\in[...])
works, but I want to know if it can do such job
automatically.
Wang
------------------------------------------------------------------------
Mr. Wang Lei Phone: 86-10-62616670
Email: lwang@amath8.amt.ac.cn
Institute of Applied Mathematics leiwang@btamail.net.cn
Chinese Academy of Science Address: P.O.Box 2734, Beijing, 100080
------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to add () to equation number?
2000-06-05 14:01 How to add () to equation number? Mr. Wang Lei
@ 2000-06-06 15:01 ` Mr. Wang Lei
2000-06-06 21:05 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Mr. Wang Lei @ 2000-06-06 15:01 UTC (permalink / raw)
On Mon, 5 Jun 2000, Mr. Wang Lei wrote:
> Hi, I want put the equation numbers into a pair of ( )
> when refering them. For example, if I have writtten
> a formula numbered 1.1 and labeled [eq:number1], then when
> I use \in[eq:number1], I want get (1.1) other than
> 1.1 . I knew put the \in[..] into (\in[...])
> works, but I want to know if it can do such job
> automatically.
>
\definereferenceformat[informula] [left=(,right=),text=equation]
works. using "find + grep" get the above solution. :-)
Wang
------------------------------------------------------------------------
Mr. Wang Lei Phone: 86-10-62616670
Email: lwang@amath8.amt.ac.cn
Institute of Applied Mathematics leiwang@btamail.net.cn
Chinese Academy of Science Address: P.O.Box 2734, Beijing, 100080
------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to add () to equation number?
2000-06-06 15:01 ` Mr. Wang Lei
@ 2000-06-06 21:05 ` Hans Hagen
0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2000-06-06 21:05 UTC (permalink / raw)
Cc: NTG-ConTeXt
At 11:01 PM 6/6/2000 +0800, Mr. Wang Lei wrote:
>On Mon, 5 Jun 2000, Mr. Wang Lei wrote:
>
>> Hi, I want put the equation numbers into a pair of ( )
>> when refering them. For example, if I have writtten
>> a formula numbered 1.1 and labeled [eq:number1], then when
>> I use \in[eq:number1], I want get (1.1) other than
>> 1.1 . I knew put the \in[..] into (\in[...])
>> works, but I want to know if it can do such job
>> automatically.
>>
>
>\definereferenceformat[informula] [left=(,right=),text=equation]
>
>works. using "find + grep" get the above solution. :-)
An alternative is using left/right labels (actually implemented since
chinese needed it):
\setuplabeltext
[figure={{whow (},{)}},
infigure={{in figure (},{)}}]
\definereferenceformat[infigureA][left=(,right=),text=figure]
\definereferenceformat[infigureB][label=infigure]
\starttext
\placefigure[here][c]{}{}
\infigureA[c] en \infigureB[c]
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-06-06 21:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-05 14:01 How to add () to equation number? Mr. Wang Lei
2000-06-06 15:01 ` Mr. Wang Lei
2000-06-06 21:05 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).