* Behaviour of definereferenceformat changed?
@ 2011-05-21 16:32 Julian Becker
2011-05-21 18:08 ` Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Julian Becker @ 2011-05-21 16:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 684 bytes --]
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."
[-- Attachment #1.2: Type: text/html, Size: 968 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Behaviour of definereferenceformat changed?
2011-05-21 16:32 Behaviour of definereferenceformat changed? Julian Becker
@ 2011-05-21 18:08 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2011-05-21 18:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-21 18:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-21 16:32 Behaviour of definereferenceformat changed? Julian Becker
2011-05-21 18:08 ` Wolfgang Schuster
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).