Re: [NTG-context] naming of labels: Is »()« allowed?
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 - ___ 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] naming of labels: Is »()« allowed?
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 »… Best regards: OK On 8 déc. 2011, at 02:18, Paul Menzel wrote: > >\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 > >Is it working? \eqref[(N)] > >\CONTEXT\ \contextmark\ \contextversion >\stoptext ___ 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] naming of labels: Is »()« allowed?
Dear ConTeXt folks, Am Donnerstag, den 08.12.2011, 02:18 +0100 schrieb Paul Menzel: > in ConTeXt I like how I can choose arbitrary names for label and > reference them. I think some time ago it was possible to also use »()«. > This does not work anymore with > > ConTeXt ver: 2011.11.25 21:29 MKIV fmt: 2011.11.25 int: > english/english > > and the following message is in the log file. > > references > unknown reference [][(N)] > > > \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 > > Is it working? \eqref[(N)] > > \CONTEXT\ \contextmark\ \contextversion > \stoptext please find the minimal example and the output attached. Thanks, Paul ref.pdf Description: Adobe PDF document \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 Is it working? \eqref[(N)] \CONTEXT\ \contextmark\ \contextversion \stoptext signature.asc Description: This is a digitally signed message part ___ 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 ___
[NTG-context] naming of labels: Is »()« allowed?
Dear ConTeXt folks, in ConTeXt I like how I can choose arbitrary names for label and reference them. I think some time ago it was possible to also use »()«. This does not work anymore with ConTeXt ver: 2011.11.25 21:29 MKIV fmt: 2011.11.25 int: english/english and the following message is in the log file. references > unknown reference [][(N)] \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 Is it working? \eqref[(N)] \CONTEXT\ \contextmark\ \contextversion \stoptext Thanks, Paul signature.asc Description: This is a digitally signed message part ___ 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 ___