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
___________________________________________________________________________________

Reply via email to