* naming of labels: Is »()« allowed?
@ 2011-12-08 1:18 Paul Menzel
2011-12-08 1:21 ` Paul Menzel
2011-12-08 8:36 ` Otared Kavian
0 siblings, 2 replies; 4+ messages in thread
From: Paul Menzel @ 2011-12-08 1:18 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 782 bytes --]
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
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 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] 4+ messages in thread
* Re: naming of labels: Is »()« allowed?
2011-12-08 1:18 naming of labels: Is »()« allowed? Paul Menzel
@ 2011-12-08 1:21 ` Paul Menzel
2011-12-08 8:36 ` Otared Kavian
1 sibling, 0 replies; 4+ messages in thread
From: Paul Menzel @ 2011-12-08 1:21 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1.1: Type: text/plain, Size: 955 bytes --]
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
[-- Attachment #1.1.2: ref.pdf --]
[-- Type: application/pdf, Size: 29617 bytes --]
[-- Attachment #1.1.3: ref.tex --]
[-- Type: text/x-tex, Size: 272 bytes --]
\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
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 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] 4+ messages in thread
* Re: naming of labels: Is »()« allowed?
2011-12-08 1:18 naming of labels: Is »()« allowed? Paul Menzel
2011-12-08 1:21 ` Paul Menzel
@ 2011-12-08 8:36 ` Otared Kavian
2011-12-08 15:48 ` Hans Hagen
1 sibling, 1 reply; 4+ messages in thread
From: Otared Kavian @ 2011-12-08 8:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: naming of labels: Is »()« allowed?
2011-12-08 8:36 ` Otared Kavian
@ 2011-12-08 15:48 ` Hans Hagen
0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2011-12-08 15:48 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Otared Kavian
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-12-08 15:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-08 1:18 naming of labels: Is »()« allowed? Paul Menzel
2011-12-08 1:21 ` Paul Menzel
2011-12-08 8:36 ` Otared Kavian
2011-12-08 15:48 ` Hans Hagen
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).