[NTG-context] Behaviour of definereferenceformat changed?

2011-05-21 Thread Julian Becker
Can it be that in the beta version 2011.05.01, the behaviour of
\definereferenceformat changed?
I used to define:
\definereferenceformat [ineqn] [left=(,right=),text=equation]
and get e.g. equation (1), but now all it produces (equation 1). Is it
supposed to behave that way?
Do I have to use something like
\definereferenceformat [ineqn] [right={)},text={equation (}]
to get what I want, or is there something better?



Example:

\definereferenceformat [ineqn] [left=(,right=),text=equation]
\starttext
Here in \ineqn[eq1].
\placeformula[eq1]
\startformula
a^2+b^2=c^2
\stopformula
\stoptext


Julian.


--
Keep thy heart with all diligence; for it is the wellspring of life.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Behaviour of definereferenceformat changed?

2011-05-21 Thread Wolfgang Schuster

Am 21.05.2011 um 18:32 schrieb Julian Becker:

 Can it be that in the beta version 2011.05.01, the behaviour of 
 \definereferenceformat changed?
 I used to define:
 \definereferenceformat [ineqn] [left=(,right=),text=equation]
 and get e.g. equation (1), but now all it produces (equation 1). Is it 
 supposed to behave that way?
 Do I have to use something like
 \definereferenceformat [ineqn] [right={)},text={equation (}]
 to get what I want, or is there something better?

There seems to be a few lines in the source in the wrong,
it’s possible this happened when Hans rewrote parts of
the interaction macros to make them more efficient.

\setvalue{\??rf\c!interaction\v!all}%
  {\leftofreference
   \the\leftreferencetoks
   \doifsometokselse\leftreferencetoks \leftofreferencecontent \donothing
   \currentreferencecontent
   \doifsometokselse\rightreferencetoks\rightofreferencecontent\donothing
   \the\rightreferencetoks
   \rightofreference}

should be

\setvalue{\??rf\c!interaction\v!all}%
  {\the\leftreferencetoks
   \doifsometokselse\leftreferencetoks \leftofreferencecontent \donothing
   \leftofreference
   \currentreferencecontent
   \rightofreference
   \doifsometokselse\rightreferencetoks\rightofreferencecontent\donothing
   \the\rightreferencetoks}

but I’m not sure about this, what is the expected output?

\setvalue{\??rf\c!interaction\v!label}%
  {\leftofreference
   \the\leftreferencetoks
   \the\rightreferencetoks
   \rightofreference}

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___