On 8-12-2011 09:36, Otared Kavian wrote:
Hi Paul,
It seems that the left parenthesis causes trouble when giving a label to a reference:
\definereferenceformat[eqref][left=(,right=)]
\starttext \placeformula[N)] \startformula \Pr\{N = n\} = \Pr\left\{ \min_{1 ≤ k ≤ n} S_k> 0 \right\} = p_n^{(1)} \stopformula
This works: \type{\eqref[N)]} gives \eqref[N)].
\starttext \placeformula[(N] \startformula \Pr\{N = n\} = \Pr\left\{ \min_{1 ≤ k ≤ n} S_k> 0 \right\} = p_n^{(1)} \stopformula
This does not work: \type{\eqref[(N]} gives \eqref[(N].
This is not really an issue, since it is not necessary to name a label « (N) » or « (N »…
indeed, formula:n-lparent makes more sense then keep in mind that references are parsed .. think of a comma separated list of: component:::inner component:::inner component:inner special(operation{argument,argument}) special(operation) special(\operation) special() inner{argument} inner{\argument} outer:: outer::inner outer::special(operation{argument,argument}) outer::special(operation{argument,\argument}) outer::special(operation) outer::special(\operation) outer::special() outer::inner{argument} special(outer::operation) so, letters, digits and dashes and single colons are quite ok in tags Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------