* referenceformat, text
@ 2010-08-08 12:44 Yury G. Kudryashov
2010-08-08 16:45 ` Hans Hagen
0 siblings, 1 reply; 13+ messages in thread
From: Yury G. Kudryashov @ 2010-08-08 12:44 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1: Type: text/plain, Size: 267 bytes --]
Hi!
The following code:
\definereferenceformat[lem][text=Lemma]
\inlem[lem:mylemma]
produces just a number, no "Lemma " prefix. I've sent a patch to fix it a
while ago. Could you please apply it, or tell me why you don't want to apply
it?
--
Yury G. Kudryashov
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: referenceformat-fix.patch --]
[-- Type: text/x-patch; name="referenceformat-fix.patch", Size: 725 bytes --]
--- a/tex/texmf-context/tex/context/base/strc-ref.mkiv 2010-05-21 15:44:04.000000000 +0400
+++ b/tex/texmf-context/tex/context/base/strc-ref.mkiv 2010-05-31 22:18:38.000000000 +0400
@@ -983,10 +983,13 @@
{\ifx\next\bgroup
\afterassignment\doinatreferenceonetwo
\expandafter\leftreferencetoks
- \else
+ \else\ifx\textofreference\empty
\leftreferencetoks\emptytoks
- \expandafter\dodoinatreferencenone
- \fi}
+ \expandafter\expandafter\expandafter\dodoinatreferencenone
+ \else
+ \leftreferencetoks{\textofreference}%
+ \expandafter\expandafter\expandafter\doinatreferenceonetwo
+ \fi\fi}
\def\doinatreferenceonetwo
{\futurelet\next\doinatreferencetwo}
[-- Attachment #3: Type: text/plain, Size: 486 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] 13+ messages in thread
* Re: referenceformat, text
2010-08-08 12:44 referenceformat, text Yury G. Kudryashov
@ 2010-08-08 16:45 ` Hans Hagen
2010-08-08 17:19 ` Yury G. Kudryashov
0 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2010-08-08 16:45 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Yury G. Kudryashov
On 8-8-2010 2:44, Yury G. Kudryashov wrote:
> Hi!
>
> The following code:
>
> \definereferenceformat[lem][text=Lemma]
> \inlem[lem:mylemma]
>
> produces just a number, no "Lemma " prefix. I've sent a patch to fix it a
> while ago. Could you please apply it, or tell me why you don't want to apply
> it?
because it needs another patch, i'll look at it
-----------------------------------------------------------------
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] 13+ messages in thread
* Re: referenceformat, text
2010-08-08 16:45 ` Hans Hagen
@ 2010-08-08 17:19 ` Yury G. Kudryashov
2010-08-08 17:30 ` Hans Hagen
0 siblings, 1 reply; 13+ messages in thread
From: Yury G. Kudryashov @ 2010-08-08 17:19 UTC (permalink / raw)
To: ntg-context
Hans Hagen wrote:
> On 8-8-2010 2:44, Yury G. Kudryashov wrote:
>> Hi!
>>
>> The following code:
>>
>> \definereferenceformat[lem][text=Lemma]
>> \inlem[lem:mylemma]
>>
>> produces just a number, no "Lemma " prefix. I've sent a patch to fix it a
>> while ago. Could you please apply it, or tell me why you don't want to
>> apply it?
>
> because it needs another patch, i'll look at it
It applies with some shift (GNU patch resolves this automatically), and
works here.
___________________________________________________________________________________
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] 13+ messages in thread
* Re: referenceformat, text
2010-08-08 17:19 ` Yury G. Kudryashov
@ 2010-08-08 17:30 ` Hans Hagen
2010-08-08 17:40 ` Yury G. Kudryashov
0 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2010-08-08 17:30 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Yury G. Kudryashov
On 8-8-2010 7:19, Yury G. Kudryashov wrote:
> Hans Hagen wrote:
>
>> On 8-8-2010 2:44, Yury G. Kudryashov wrote:
>>> Hi!
>>>
>>> The following code:
>>>
>>> \definereferenceformat[lem][text=Lemma]
>>> \inlem[lem:mylemma]
>>>
>>> produces just a number, no "Lemma " prefix. I've sent a patch to fix it a
>>> while ago. Could you please apply it, or tell me why you don't want to
>>> apply it?
>>
>> because it needs another patch, i'll look at it
> It applies with some shift (GNU patch resolves this automatically), and
> works here.
this is only one case (we also need labels, content, left and right to
work ok)
-----------------------------------------------------------------
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] 13+ messages in thread
* Re: referenceformat, text
2010-08-08 17:30 ` Hans Hagen
@ 2010-08-08 17:40 ` Yury G. Kudryashov
2010-08-08 20:36 ` Hans Hagen
0 siblings, 1 reply; 13+ messages in thread
From: Yury G. Kudryashov @ 2010-08-08 17:40 UTC (permalink / raw)
To: ntg-context
Hans Hagen wrote:
> On 8-8-2010 7:19, Yury G. Kudryashov wrote:
>> Hans Hagen wrote:
>>
>>> On 8-8-2010 2:44, Yury G. Kudryashov wrote:
>>>> Hi!
>>>>
>>>> The following code:
>>>>
>>>> \definereferenceformat[lem][text=Lemma]
>>>> \inlem[lem:mylemma]
>>>>
>>>> produces just a number, no "Lemma " prefix. I've sent a patch to fix it
>>>> a while ago. Could you please apply it, or tell me why you don't want
>>>> to apply it?
>>>
>>> because it needs another patch, i'll look at it
>> It applies with some shift (GNU patch resolves this automatically), and
>> works here.
>
> this is only one case (we also need labels, content, left and right to
> work ok)
At least left and right work ok without any patch.
___________________________________________________________________________________
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] 13+ messages in thread
* Re: referenceformat, text
2010-08-08 17:40 ` Yury G. Kudryashov
@ 2010-08-08 20:36 ` Hans Hagen
2010-08-08 20:55 ` Aditya Mahajan
2010-08-08 22:22 ` Yury G. Kudryashov
0 siblings, 2 replies; 13+ messages in thread
From: Hans Hagen @ 2010-08-08 20:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 8-8-2010 7:40, Yury G. Kudryashov wrote:
>> this is only one case (we also need labels, content, left and right to
>> work ok)
I uploaded a beta that handles the following as intended.
\starttext
\definereferenceformat [intesta] [left=(,right=),text=Whatever~]
\definereferenceformat [intestb] [left=(,right=),label=figure]
\placeformula[x]\startformula a \stopformula
\starttabulate[|||||]
\NC \in [x] \NC \in {left}[x] \NC \in {}{right}[x] \NC \in
{left}{right}[x] \NC \NR
\NC \intesta[x] \NC \intesta{left}[x] \NC \intesta{}{right}[x] \NC
\intesta{left}{right}[x] \NC \NR
\NC \intestb[x] \NC \intestb{left}[x] \NC \intestb{}{right}[x] \NC
\intestb{left}{right}[x] \NC \NR
\stoptabulate
\stoptext
-----------------------------------------------------------------
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] 13+ messages in thread
* Re: referenceformat, text
2010-08-08 20:36 ` Hans Hagen
@ 2010-08-08 20:55 ` Aditya Mahajan
2010-08-08 22:22 ` Yury G. Kudryashov
1 sibling, 0 replies; 13+ messages in thread
From: Aditya Mahajan @ 2010-08-08 20:55 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sun, 8 Aug 2010, Hans Hagen wrote:
> On 8-8-2010 7:40, Yury G. Kudryashov wrote:
>
>> > this is only one case (we also need labels, content, left and right to
>> > work ok)
>
> I uploaded a beta that handles the following as intended.
Can you also add a style and color key to \definereferenceformat (if you
haven't already added them sometime in the last one year:-)
Aditya
___________________________________________________________________________________
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] 13+ messages in thread
* Re: referenceformat, text
2010-08-08 20:36 ` Hans Hagen
2010-08-08 20:55 ` Aditya Mahajan
@ 2010-08-08 22:22 ` Yury G. Kudryashov
2010-08-08 22:48 ` Wolfgang Schuster
2010-08-08 22:52 ` Hans Hagen
1 sibling, 2 replies; 13+ messages in thread
From: Yury G. Kudryashov @ 2010-08-08 22:22 UTC (permalink / raw)
To: ntg-context
Hans Hagen wrote:
> On 8-8-2010 7:40, Yury G. Kudryashov wrote:
>
>>> this is only one case (we also need labels, content, left and right to
>>> work ok)
>
> I uploaded a beta that handles the following as intended.
>
> \starttext
>
> \definereferenceformat [intesta] [left=(,right=),text=Whatever~]
> \definereferenceformat [intestb] [left=(,right=),label=figure]
>
> \placeformula[x]\startformula a \stopformula
>
> \starttabulate[|||||]
> \NC \in [x] \NC \in {left}[x] \NC \in {}{right}[x] \NC \in
> {left}{right}[x] \NC \NR
I see no "left" or "right" in the first string in PDF output. Just
"1\t1\t1\t1".
Other strings work as expected except for "~" in text= field. In the earlier
versions ~ was inserted automatically. For example,
http://wiki.contextgarden.net/References suggests
\definereferenceformat[insec][text=section]
Am I right that the main difference between "text" and "label" (in the new
version) is that context automatically uppercases "label" and adds ~ after
it?
___________________________________________________________________________________
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] 13+ messages in thread
* Re: referenceformat, text
2010-08-08 22:22 ` Yury G. Kudryashov
@ 2010-08-08 22:48 ` Wolfgang Schuster
2010-08-08 22:52 ` Hans Hagen
1 sibling, 0 replies; 13+ messages in thread
From: Wolfgang Schuster @ 2010-08-08 22:48 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Yury G. Kudryashov
Am 09.08.10 00:22, schrieb Yury G. Kudryashov:
> I see no "left" or "right" in the first string in PDF output. Just
> "1\t1\t1\t1".
Try it again later, it takes always a while till the beta is in the
minimals.
> Other strings work as expected except for "~" in text= field. In the earlier
> versions ~ was inserted automatically. For example,
> http://wiki.contextgarden.net/References suggests
>
> \definereferenceformat[insec][text=section]
>
> Am I right that the main difference between "text" and "label" (in the new
> version) is that context automatically uppercases "label" and adds ~ after
> it?
No, the label key takes whatever you set with
\setuplabeltext[<language>][figure=...]
and in the default value for figure is 'Figure ' with a space after the
string.
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] 13+ messages in thread
* Re: referenceformat, text
2010-08-08 22:22 ` Yury G. Kudryashov
2010-08-08 22:48 ` Wolfgang Schuster
@ 2010-08-08 22:52 ` Hans Hagen
2010-08-09 7:17 ` Yury G. Kudryashov
1 sibling, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2010-08-08 22:52 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Yury G. Kudryashov
On 9-8-2010 12:22, Yury G. Kudryashov wrote:
>> \NC \in [x] \NC \in {left}[x] \NC \in {}{right}[x] \NC \in
>> {left}{right}[x] \NC \NR
> I see no "left" or "right" in the first string in PDF output. Just
> "1\t1\t1\t1".
sure, as \in has no left and right (nor a setup)
-----------------------------------------------------------------
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] 13+ messages in thread
* Re: referenceformat, text
2010-08-08 22:52 ` Hans Hagen
@ 2010-08-09 7:17 ` Yury G. Kudryashov
2010-08-09 7:57 ` Hans Hagen
0 siblings, 1 reply; 13+ messages in thread
From: Yury G. Kudryashov @ 2010-08-09 7:17 UTC (permalink / raw)
To: ntg-context
Hans Hagen wrote:
> On 9-8-2010 12:22, Yury G. Kudryashov wrote:
>
>>> \NC \in [x] \NC \in {left}[x] \NC \in {}{right}[x] \NC \in
>>> {left}{right}[x] \NC \NR
>> I see no "left" or "right" in the first string in PDF output. Just
>> "1\t1\t1\t1".
>
> sure, as \in has no left and right (nor a setup)
Yes, but "\in{left}{right}[x]" has "left" and "right" but I don't see them
in the output.
___________________________________________________________________________________
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] 13+ messages in thread
* Re: referenceformat, text
2010-08-09 7:17 ` Yury G. Kudryashov
@ 2010-08-09 7:57 ` Hans Hagen
2010-08-09 8:21 ` Yury G. Kudryashov
0 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2010-08-09 7:57 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Yury G. Kudryashov
On 9-8-2010 9:17, Yury G. Kudryashov wrote:
> Hans Hagen wrote:
>
>> On 9-8-2010 12:22, Yury G. Kudryashov wrote:
>>
>>>> \NC \in [x] \NC \in {left}[x] \NC \in {}{right}[x] \NC \in
>>>> {left}{right}[x] \NC \NR
>>> I see no "left" or "right" in the first string in PDF output. Just
>>> "1\t1\t1\t1".
>>
>> sure, as \in has no left and right (nor a setup)
> Yes, but "\in{left}{right}[x]" has "left" and "right" but I don't see them
> in the output.
i see them here so maybe your update went wrong
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] 13+ messages in thread
* Re: referenceformat, text
2010-08-09 7:57 ` Hans Hagen
@ 2010-08-09 8:21 ` Yury G. Kudryashov
0 siblings, 0 replies; 13+ messages in thread
From: Yury G. Kudryashov @ 2010-08-09 8:21 UTC (permalink / raw)
To: ntg-context
Hans Hagen wrote:
> On 9-8-2010 9:17, Yury G. Kudryashov wrote:
>> Hans Hagen wrote:
>>
>>> On 9-8-2010 12:22, Yury G. Kudryashov wrote:
>>>
>>>>> \NC \in [x] \NC \in {left}[x] \NC \in {}{right}[x] \NC \in
>>>>> {left}{right}[x] \NC \NR
>>>> I see no "left" or "right" in the first string in PDF output. Just
>>>> "1\t1\t1\t1".
>>>
>>> sure, as \in has no left and right (nor a setup)
>> Yes, but "\in{left}{right}[x]" has "left" and "right" but I don't see
>> them in the output.
>
> i see them here so maybe your update went wrong
I don't see them in a fresh install. Probably you have some uncomitted
stuff.
___________________________________________________________________________________
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] 13+ messages in thread
end of thread, other threads:[~2010-08-09 8:21 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-08 12:44 referenceformat, text Yury G. Kudryashov
2010-08-08 16:45 ` Hans Hagen
2010-08-08 17:19 ` Yury G. Kudryashov
2010-08-08 17:30 ` Hans Hagen
2010-08-08 17:40 ` Yury G. Kudryashov
2010-08-08 20:36 ` Hans Hagen
2010-08-08 20:55 ` Aditya Mahajan
2010-08-08 22:22 ` Yury G. Kudryashov
2010-08-08 22:48 ` Wolfgang Schuster
2010-08-08 22:52 ` Hans Hagen
2010-08-09 7:17 ` Yury G. Kudryashov
2010-08-09 7:57 ` Hans Hagen
2010-08-09 8:21 ` Yury G. Kudryashov
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).