Behaviour of definereferenceformat changed?
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."
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
participants (2)
-
Julian Becker
-
Wolfgang Schuster