ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Formula references
@ 2000-09-05 14:31 Michal Kvasnicka
  2000-09-07 13:39 ` Formula references (once more) Michal Kvasnicka
  0 siblings, 1 reply; 5+ messages in thread
From: Michal Kvasnicka @ 2000-09-05 14:31 UTC (permalink / raw)


Hello!

How can I make the formula references be enclosed in brackets?
I mean this:
    bla bla bla \in{equation}[eq:bum] bla bla bla
should give me
    bla bla bla equation (1) bla bla bla

Many thanks for your kind help.

M.K.

--
Economics is the only field in which two people can get a Nobel Prize
for saying exactly the opposite things.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Formula references (once more)
  2000-09-05 14:31 Formula references Michal Kvasnicka
@ 2000-09-07 13:39 ` Michal Kvasnicka
  2000-09-07 14:54   ` Hans Hagen
  2000-09-09  7:39   ` Berend de Boer
  0 siblings, 2 replies; 5+ messages in thread
From: Michal Kvasnicka @ 2000-09-07 13:39 UTC (permalink / raw)


Dear friends!

Excuse me being hard-headed, but I will repeat my question (since I
havn't got
answer and I need it):

How can I make \in macro enclose the formula number in parentheses?
I'd like
    \placeformula[eq:bum] $$ a = b $$
    ...
    \in{equation}[eq:bum]
to produce:

    a = b
    ...
    equation (1)

Can you hint me?

Many thanks and greetings.

M.K.

--
Economics is the only field in which two people can get a Nobel Prize
for saying exactly the opposite things.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Formula references (once more)
  2000-09-07 13:39 ` Formula references (once more) Michal Kvasnicka
@ 2000-09-07 14:54   ` Hans Hagen
  2000-09-09  7:39   ` Berend de Boer
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2000-09-07 14:54 UTC (permalink / raw)
  Cc: Context

At 03:39 PM 9/7/00 +0200, Michal Kvasnicka wrote:
>Dear friends!
>
>Excuse me being hard-headed, but I will repeat my question (since I
>havn't got
>answer and I need it):
>
>How can I make \in macro enclose the formula number in parentheses?
>I'd like
>    \placeformula[eq:bum] $$ a = b $$
>    ...
>    \in{equation}[eq:bum]
>to produce:
>
>    a = b
>    ...
>    equation (1)

Page 215 of the beta manual cont-enp.pdf explains how to do that. 

Hans
-------------------------------------------------------------------------
                                                  Hans Hagen | PRAGMA ADE
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Formula references (once more)
  2000-09-07 13:39 ` Formula references (once more) Michal Kvasnicka
  2000-09-07 14:54   ` Hans Hagen
@ 2000-09-09  7:39   ` Berend de Boer
  2000-09-09 14:27     ` Wang Lei
  1 sibling, 1 reply; 5+ messages in thread
From: Berend de Boer @ 2000-09-09  7:39 UTC (permalink / raw)
  Cc: Context

Michal Kvasnicka wrote:

> How can I make \in macro enclose the formula number in parentheses?

Not possible without rewriting things as far as I know the source. You
can always write a:

\def\myin[#1]{(\in[#1])}

or something like that of course.

Groetjes,

Berend. (-:


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Formula references (once more)
  2000-09-09  7:39   ` Berend de Boer
@ 2000-09-09 14:27     ` Wang Lei
  0 siblings, 0 replies; 5+ messages in thread
From: Wang Lei @ 2000-09-09 14:27 UTC (permalink / raw)
  Cc: Context

> Michal Kvasnicka wrote:
> 
> 
> > How can I make \in macro enclose the formula number in parentheses?
> 
> Not possible without rewriting things as far as I know the source. You
> can always write a:
> 
> \def\myin[#1]{(\in[#1])}
> 
> or something like that of course.

\definereferenceformat
     [informula]  
     [left=(,right=),text=]

In you paper, use \informula[eq:myeq] will get reference such like (1).

Regards,

Wang


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-09-09 14:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-05 14:31 Formula references Michal Kvasnicka
2000-09-07 13:39 ` Formula references (once more) Michal Kvasnicka
2000-09-07 14:54   ` Hans Hagen
2000-09-09  7:39   ` Berend de Boer
2000-09-09 14:27     ` Wang Lei

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).