ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Latest beta: reference to items broken in mkiv
@ 2015-04-01  8:24 Otared Kavian
  0 siblings, 0 replies; 10+ messages in thread
From: Otared Kavian @ 2015-04-01  8:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Hans,

It seems that referencing to items is broken in the latest beta mkiv: for example in the example below the command
	\in{Item}[ref:2]
does not show item number 2.
However it works fine in mkii and previous releases.
Best regards: OK
PS: a minimal example follows
%%% begin ref-item-broken.tex
\starttext 

\startitemize[n]

\startitem[ref:1]
Item 1, reference 1
\stopitem

\startitem[ref:2]
Item 2, reference 2
\stopitem

\startitem[ref:3]
Item 3, reference 3
\stopitem
	
\stopitemize

See \in{Item}[ref:2] above.

\stoptext
%%% end ref-item-broken.tex
___________________________________________________________________________________
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] 10+ messages in thread

* Re: Latest beta: reference to items broken in mkiv
  2018-02-07 13:53             ` Otared Kavian
  2018-02-07 15:59               ` r.ermers
@ 2018-02-09 16:18               ` r.ermers
  1 sibling, 0 replies; 10+ messages in thread
From: r.ermers @ 2018-02-09 16:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 9799 bytes --]

Hi all,

I kindly ask for your attention for this problem again. I would like subitems to appear differently in the reference than they are in the listing:

1. item 1

	a. subitem a, reference a

	b. item b
	c. Item c, reference c

2. Item 2, reference 2 See Item b, 2, 1 above. 


See Item b, 2, 1 above. 

------

Desired result:

See item 1b., 2 1 above.

This is possible in mkii, but not in mkiv it seems. Does anyone know how to achieve this?

Robert


A minimal example to play with:

%\setupitemgroup[itemize][1][n,repeat][width=1em]
%\setupitemgroup[itemize][2][a,repeat][width=2em]
%\setupitemgroup[itemize][3][r][width=3em]

\starttext 

\startitemize[n]
\item [ref:1] item 1
\startitemize[a]
\startitem[ref:a]
subitem a, reference a
\stopitem
\item [ref:b] item b
\startitem[ref:c]
Item c, reference c
\stopitem
\stopitemize
\item[ref:2]
Item 2, reference 2
\stopitem
\stopitemize

See \in{Item}[ref:b], \in[ref:2], \in[ref:1] above.




> Op 7 feb. 2018, om 14:53 heeft Otared Kavian <otared@gmail.com <mailto:otared@gmail.com>> het volgende geschreven:
> 
> Hi Robert,
> 
> Again I answered too quickly… excuse-me!
> If you want to have the subitems appear without the prefix, but references to them contain the number of the item where they appear, I don’t know how to do it.
> My previous message addresses only the separators between the numbers of the items and subitems.
> Sorry… but my belief is that in ConTeXt everything is possible, even if I don’t know how to do it :-)
> 
> Best regards: OK
> 
>> On 7 Feb 2018, at 12:56, r.ermers@hccnet.nl <mailto:r.ermers@hccnet.nl> wrote:
>> 
>> Hi Otared,
>> 
>> Thanks, the solution works to some extend. It yields the following output.
>> 
>> 1. item 1
>> 
>> 1.a.  subitem a, reference a
>> 
>> 1.b.  item b
>> 
>> 		1.b.i. A sub-sub item
>> 
>> 		1.b.ii. Another sub-sub item, B 1.c. Item c, reference c
>> 
>> 2. Item 2, reference 2
>> 
>> See Item 1.b, see also items 2 and 1 above, as well as the sub-sub item 1.b.ii. 
>> 
>> 
>> Yet the output I am looking for, and which I had in mkii, is:
>> 1. item 1
>> 
>> a.  subitem a, reference a
>> 
>> b.  item b
>> 
>> 		i. A sub-sub item
>> 
>> 		ii. Another sub-sub item, B 1.c. Item c, reference c
>> 
>> 2. Item 2, reference 2
>> 
>> 
>> See Item 1.b / 1b, see also items 2 and 1 above, as well as the sub-sub item 1.b.ii / 1bii. 
>> 
>> 
>> Is this possible?
>> 
>> Regards,
>> 
>> Robert
>> 
>> 
>> 
>> 
>>> Op 7 feb. 2018, om 12:37 heeft Otared Kavian <otared@gmail.com <mailto:otared@gmail.com>> het volgende geschreven:
>>> 
>>> Hi Robert,
>>> 
>>> I think the issue does not come from the version of Context you are using but rather from a lack of formatting your itemgroups with the keyword « repeat ».
>>> 
>>> I guess what you want to obtain can be achieved with the following example below. At least here with either versions of Context I have the output is as expected.
>>> 
>>> Best regards: OK
>>> 
>>> %% begin repeat-subitem.tex
>>> \setupitemgroup[itemize][1][n,repeat][width=1em]
>>> \setupitemgroup[itemize][2][a,repeat][width=2em]
>>> \setupitemgroup[itemize][3][r][width=3em]
>>> 
>>> \starttext 
>>> 
>>> \startitemize[n]
>>> \item[ref:1] item 1
>>> 	\startitemize  
>>> 		\startitem[ref:a]
>>> 			subitem a, reference a
>>> 		\stopitem
>>> 		\item [ref:b] item b
>>> 			\startitemize
>>> 				\item A sub-sub item
>>> 				\item[ref:subsub-B] Another sub-sub item, B
>>> 			\stopitemize
>>> 		\startitem[ref:c]
>>> 			Item c, reference c
>>> 		\stopitem
>>> 	\stopitemize
>>> 	\startitem[ref:2]
>>> 		Item 2, reference 2
>>> 	\stopitem
>>> 
>>> \stopitemize
>>> \blank[big]
>>> 
>>> See \in{Item}[ref:b], see also items \in[ref:2] and \in[ref:1] above, as well as the \in{sub-sub item}[ref:subsub-B].
>>> 
>>> \stoptext
>>> %% end repeat-subitem.tex
>>> 
>>> 
>>> 
>>>> On 7 Feb 2018, at 11:46, r.ermers@hccnet.nl <mailto:r.ermers@hccnet.nl> wrote:
>>>> 
>>>> Hi Wolfgang, Otared and others,
>>>> 
>>>> I installed a new standalone:
>>>> 
>>>> mtx-context     | main context file: /Applications/ContextStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv
>>>> mtx-context     | current version: 2018.02.06 18:11
>>>> 
>>>> However, I do not manage to get it going. The minimal example underneath gives the following result:
>>>> 1. item 1
>>>> a. subitem a, reference a 
>>>> 
>>>> b. item b
>>>> 
>>>> c. Item c, reference c
>>>> 
>>>> 2. Item 2, reference 2 
>>>> 
>>>> 
>>>> See Item b, 2, 1 above. 
>>>> 
>>>> This should be: 
>>>> 
>>>> See Item 1b, 2, 1 above.
>>>> 
>>>> Regards,
>>>> 
>>>> Robert
>>>> 
>>>> 
>>>> 
>>>> \starttext 
>>>> 
>>>> \startitemize[n]\starttext 
>>>> 
>>>> \startitemize[n]
>>>> \item [ref:1] item 1
>>>> \startitemize[a]
>>>> \startitem[ref:a]
>>>> subitem a, reference a
>>>> \stopitem
>>>> \item [ref:b] item b
>>>> \startitem[ref:c]
>>>> Item c, reference c
>>>> \stopitem
>>>> \stopitemize
>>>> \startitem[ref:2]
>>>> Item 2, reference 2
>>>> \stopitem
>>>> \stopitemize
>>>> 
>>>> See \in{Item}[ref:b], \in[ref:2], \in[ref:1] above.
>>>> 
>>>> 
>>>> \stoptext
>>>> 
>>>> 
>>>>> Op 7 feb. 2018, om 11:03 heeft Wolfgang Schuster <schuster.wolfgang@gmail.com <mailto:schuster.wolfgang@gmail.com>> het volgende geschreven:
>>>>> 
>>>>> 
>>>>> 
>>>>>> r.ermers@hccnet.nl <mailto:r.ermers@hccnet.nl> 7. Februar 2018 um 10:58
>>>>>> Hi Otared,
>>>>>> 
>>>>>> Thanks for your response. In mkii this worked flawlessly.
>>>>>> 
>>>>>> I tried it in mkiv Texlive too (2017.05.15 21:48), but it does not work. Could this be because I have item [it:ref] rather than \startitem[it:ref] … \stopitem?
>>>>> 
>>>>> It works for me with \item[<reference>] and \startitem[<reference>].
>>>>> 
>>>>> 
>>>>> $ context --version
>>>>> 
>>>>> mtx-context     | current version: 2018.02.06 18:11
>>>>> 
>>>>> 
>>>>> Wolfgang
>>>>> ___________________________________________________________________________________
>>>>> If your question is of interest to others as well, please add an entry to the Wiki!
>>>>> 
>>>>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
>>>>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
>>>>> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
>>>>> wiki     : http://contextgarden.net <http://contextgarden.net/>
>>>>> ___________________________________________________________________________________
>>>> 
>>>> ___________________________________________________________________________________
>>>> If your question is of interest to others as well, please add an entry to the Wiki!
>>>> 
>>>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
>>>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
>>>> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
>>>> wiki     : http://contextgarden.net <http://contextgarden.net/>
>>>> ___________________________________________________________________________________
>>> 
>>> ___________________________________________________________________________________
>>> If your question is of interest to others as well, please add an entry to the Wiki!
>>> 
>>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
>>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
>>> wiki     : http://contextgarden.net <http://contextgarden.net/>
>>> ___________________________________________________________________________________
>> 
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to the Wiki!
>> 
>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
>> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
>> wiki     : http://contextgarden.net <http://contextgarden.net/>
>> ___________________________________________________________________________________
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
> wiki     : http://contextgarden.net <http://contextgarden.net/>
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 21917 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Latest beta: reference to items broken in mkiv
  2018-02-07 13:53             ` Otared Kavian
@ 2018-02-07 15:59               ` r.ermers
  2018-02-09 16:18               ` r.ermers
  1 sibling, 0 replies; 10+ messages in thread
From: r.ermers @ 2018-02-07 15:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 8969 bytes --]

Hi Otared,

Thanks for your time and trouble!.

I had found  \defineseparatorset[none][][]

with the same result: it oppresses the dots.


Yes, I want subitems to appear differently in the reference than they are in the listing:

1. item 1
	a subitem 
	b subitem
2. item 2
	a subitem
	b subitem

Desired result:

See item 1b and 2a.

Does anyone else know how to achieve this?

Robert



> Op 7 feb. 2018, om 14:53 heeft Otared Kavian <otared@gmail.com> het volgende geschreven:
> 
> Hi Robert,
> 
> Again I answered too quickly… excuse-me!
> If you want to have the subitems appear without the prefix, but references to them contain the number of the item where they appear, I don’t know how to do it.
> My previous message addresses only the separators between the numbers of the items and subitems.
> Sorry… but my belief is that in ConTeXt everything is possible, even if I don’t know how to do it :-)
> 
> Best regards: OK
> 
>> On 7 Feb 2018, at 12:56, r.ermers@hccnet.nl <mailto:r.ermers@hccnet.nl> wrote:
>> 
>> Hi Otared,
>> 
>> Thanks, the solution works to some extend. It yields the following output.
>> 
>> 1. item 1
>> 
>> 1.a.  subitem a, reference a
>> 
>> 1.b.  item b
>> 
>> 		1.b.i. A sub-sub item
>> 
>> 		1.b.ii. Another sub-sub item, B 1.c. Item c, reference c
>> 
>> 2. Item 2, reference 2
>> 
>> See Item 1.b, see also items 2 and 1 above, as well as the sub-sub item 1.b.ii. 
>> 
>> 
>> Yet the output I am looking for, and which I had in mkii, is:
>> 1. item 1
>> 
>> a.  subitem a, reference a
>> 
>> b.  item b
>> 
>> 		i. A sub-sub item
>> 
>> 		ii. Another sub-sub item, B 1.c. Item c, reference c
>> 
>> 2. Item 2, reference 2
>> 
>> 
>> See Item 1.b / 1b, see also items 2 and 1 above, as well as the sub-sub item 1.b.ii / 1bii. 
>> 
>> 
>> Is this possible?
>> 
>> Regards,
>> 
>> Robert
>> 
>> 
>> 
>> 
>>> Op 7 feb. 2018, om 12:37 heeft Otared Kavian <otared@gmail.com <mailto:otared@gmail.com>> het volgende geschreven:
>>> 
>>> Hi Robert,
>>> 
>>> I think the issue does not come from the version of Context you are using but rather from a lack of formatting your itemgroups with the keyword « repeat ».
>>> 
>>> I guess what you want to obtain can be achieved with the following example below. At least here with either versions of Context I have the output is as expected.
>>> 
>>> Best regards: OK
>>> 
>>> %% begin repeat-subitem.tex
>>> \setupitemgroup[itemize][1][n,repeat][width=1em]
>>> \setupitemgroup[itemize][2][a,repeat][width=2em]
>>> \setupitemgroup[itemize][3][r][width=3em]
>>> 
>>> \starttext 
>>> 
>>> \startitemize[n]
>>> \item[ref:1] item 1
>>> 	\startitemize  
>>> 		\startitem[ref:a]
>>> 			subitem a, reference a
>>> 		\stopitem
>>> 		\item [ref:b] item b
>>> 			\startitemize
>>> 				\item A sub-sub item
>>> 				\item[ref:subsub-B] Another sub-sub item, B
>>> 			\stopitemize
>>> 		\startitem[ref:c]
>>> 			Item c, reference c
>>> 		\stopitem
>>> 	\stopitemize
>>> 	\startitem[ref:2]
>>> 		Item 2, reference 2
>>> 	\stopitem
>>> 
>>> \stopitemize
>>> \blank[big]
>>> 
>>> See \in{Item}[ref:b], see also items \in[ref:2] and \in[ref:1] above, as well as the \in{sub-sub item}[ref:subsub-B].
>>> 
>>> \stoptext
>>> %% end repeat-subitem.tex
>>> 
>>> 
>>> 
>>>> On 7 Feb 2018, at 11:46, r.ermers@hccnet.nl <mailto:r.ermers@hccnet.nl> wrote:
>>>> 
>>>> Hi Wolfgang, Otared and others,
>>>> 
>>>> I installed a new standalone:
>>>> 
>>>> mtx-context     | main context file: /Applications/ContextStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv
>>>> mtx-context     | current version: 2018.02.06 18:11
>>>> 
>>>> However, I do not manage to get it going. The minimal example underneath gives the following result:
>>>> 1. item 1
>>>> a. subitem a, reference a 
>>>> 
>>>> b. item b
>>>> 
>>>> c. Item c, reference c
>>>> 
>>>> 2. Item 2, reference 2 
>>>> 
>>>> 
>>>> See Item b, 2, 1 above. 
>>>> 
>>>> This should be: 
>>>> 
>>>> See Item 1b, 2, 1 above.
>>>> 
>>>> Regards,
>>>> 
>>>> Robert
>>>> 
>>>> 
>>>> 
>>>> \starttext 
>>>> 
>>>> \startitemize[n]\starttext 
>>>> 
>>>> \startitemize[n]
>>>> \item [ref:1] item 1
>>>> \startitemize[a]
>>>> \startitem[ref:a]
>>>> subitem a, reference a
>>>> \stopitem
>>>> \item [ref:b] item b
>>>> \startitem[ref:c]
>>>> Item c, reference c
>>>> \stopitem
>>>> \stopitemize
>>>> \startitem[ref:2]
>>>> Item 2, reference 2
>>>> \stopitem
>>>> \stopitemize
>>>> 
>>>> See \in{Item}[ref:b], \in[ref:2], \in[ref:1] above.
>>>> 
>>>> 
>>>> \stoptext
>>>> 
>>>> 
>>>>> Op 7 feb. 2018, om 11:03 heeft Wolfgang Schuster <schuster.wolfgang@gmail.com <mailto:schuster.wolfgang@gmail.com>> het volgende geschreven:
>>>>> 
>>>>> 
>>>>> 
>>>>>> r.ermers@hccnet.nl <mailto:r.ermers@hccnet.nl> 7. Februar 2018 um 10:58
>>>>>> Hi Otared,
>>>>>> 
>>>>>> Thanks for your response. In mkii this worked flawlessly.
>>>>>> 
>>>>>> I tried it in mkiv Texlive too (2017.05.15 21:48), but it does not work. Could this be because I have item [it:ref] rather than \startitem[it:ref] … \stopitem?
>>>>> 
>>>>> It works for me with \item[<reference>] and \startitem[<reference>].
>>>>> 
>>>>> 
>>>>> $ context --version
>>>>> 
>>>>> mtx-context     | current version: 2018.02.06 18:11
>>>>> 
>>>>> 
>>>>> Wolfgang
>>>>> ___________________________________________________________________________________
>>>>> If your question is of interest to others as well, please add an entry to the Wiki!
>>>>> 
>>>>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
>>>>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
>>>>> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
>>>>> wiki     : http://contextgarden.net <http://contextgarden.net/>
>>>>> ___________________________________________________________________________________
>>>> 
>>>> ___________________________________________________________________________________
>>>> If your question is of interest to others as well, please add an entry to the Wiki!
>>>> 
>>>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
>>>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
>>>> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
>>>> wiki     : http://contextgarden.net <http://contextgarden.net/>
>>>> ___________________________________________________________________________________
>>> 
>>> ___________________________________________________________________________________
>>> If your question is of interest to others as well, please add an entry to the Wiki!
>>> 
>>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
>>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
>>> wiki     : http://contextgarden.net <http://contextgarden.net/>
>>> ___________________________________________________________________________________
>> 
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to the Wiki!
>> 
>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
>> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
>> wiki     : http://contextgarden.net <http://contextgarden.net/>
>> ___________________________________________________________________________________
> 
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 20520 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Latest beta: reference to items broken in mkiv
  2018-02-07 11:56           ` r.ermers
  2018-02-07 13:28             ` Otared Kavian
@ 2018-02-07 13:53             ` Otared Kavian
  2018-02-07 15:59               ` r.ermers
  2018-02-09 16:18               ` r.ermers
  1 sibling, 2 replies; 10+ messages in thread
From: Otared Kavian @ 2018-02-07 13:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 7470 bytes --]

Hi Robert,

Again I answered too quickly… excuse-me!
If you want to have the subitems appear without the prefix, but references to them contain the number of the item where they appear, I don’t know how to do it.
My previous message addresses only the separators between the numbers of the items and subitems.
Sorry… but my belief is that in ConTeXt everything is possible, even if I don’t know how to do it :-)

Best regards: OK

> On 7 Feb 2018, at 12:56, r.ermers@hccnet.nl wrote:
> 
> Hi Otared,
> 
> Thanks, the solution works to some extend. It yields the following output.
> 
> 1. item 1
> 
> 1.a.  subitem a, reference a
> 
> 1.b.  item b
> 
> 		1.b.i. A sub-sub item
> 
> 		1.b.ii. Another sub-sub item, B 1.c. Item c, reference c
> 
> 2. Item 2, reference 2
> 
> See Item 1.b, see also items 2 and 1 above, as well as the sub-sub item 1.b.ii. 
> 
> 
> Yet the output I am looking for, and which I had in mkii, is:
> 1. item 1
> 
> a.  subitem a, reference a
> 
> b.  item b
> 
> 		i. A sub-sub item
> 
> 		ii. Another sub-sub item, B 1.c. Item c, reference c
> 
> 2. Item 2, reference 2
> 
> 
> See Item 1.b / 1b, see also items 2 and 1 above, as well as the sub-sub item 1.b.ii / 1bii. 
> 
> 
> Is this possible?
> 
> Regards,
> 
> Robert
> 
> 
> 
> 
>> Op 7 feb. 2018, om 12:37 heeft Otared Kavian <otared@gmail.com <mailto:otared@gmail.com>> het volgende geschreven:
>> 
>> Hi Robert,
>> 
>> I think the issue does not come from the version of Context you are using but rather from a lack of formatting your itemgroups with the keyword « repeat ».
>> 
>> I guess what you want to obtain can be achieved with the following example below. At least here with either versions of Context I have the output is as expected.
>> 
>> Best regards: OK
>> 
>> %% begin repeat-subitem.tex
>> \setupitemgroup[itemize][1][n,repeat][width=1em]
>> \setupitemgroup[itemize][2][a,repeat][width=2em]
>> \setupitemgroup[itemize][3][r][width=3em]
>> 
>> \starttext 
>> 
>> \startitemize[n]
>> \item[ref:1] item 1
>> 	\startitemize  
>> 		\startitem[ref:a]
>> 			subitem a, reference a
>> 		\stopitem
>> 		\item [ref:b] item b
>> 			\startitemize
>> 				\item A sub-sub item
>> 				\item[ref:subsub-B] Another sub-sub item, B
>> 			\stopitemize
>> 		\startitem[ref:c]
>> 			Item c, reference c
>> 		\stopitem
>> 	\stopitemize
>> 	\startitem[ref:2]
>> 		Item 2, reference 2
>> 	\stopitem
>> 
>> \stopitemize
>> \blank[big]
>> 
>> See \in{Item}[ref:b], see also items \in[ref:2] and \in[ref:1] above, as well as the \in{sub-sub item}[ref:subsub-B].
>> 
>> \stoptext
>> %% end repeat-subitem.tex
>> 
>> 
>> 
>>> On 7 Feb 2018, at 11:46, r.ermers@hccnet.nl <mailto:r.ermers@hccnet.nl> wrote:
>>> 
>>> Hi Wolfgang, Otared and others,
>>> 
>>> I installed a new standalone:
>>> 
>>> mtx-context     | main context file: /Applications/ContextStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv
>>> mtx-context     | current version: 2018.02.06 18:11
>>> 
>>> However, I do not manage to get it going. The minimal example underneath gives the following result:
>>> 1. item 1
>>> a. subitem a, reference a 
>>> 
>>> b. item b
>>> 
>>> c. Item c, reference c
>>> 
>>> 2. Item 2, reference 2 
>>> 
>>> 
>>> See Item b, 2, 1 above. 
>>> 
>>> This should be: 
>>> 
>>> See Item 1b, 2, 1 above.
>>> 
>>> Regards,
>>> 
>>> Robert
>>> 
>>> 
>>> 
>>> \starttext 
>>> 
>>> \startitemize[n]\starttext 
>>> 
>>> \startitemize[n]
>>> \item [ref:1] item 1
>>> \startitemize[a]
>>> \startitem[ref:a]
>>> subitem a, reference a
>>> \stopitem
>>> \item [ref:b] item b
>>> \startitem[ref:c]
>>> Item c, reference c
>>> \stopitem
>>> \stopitemize
>>> \startitem[ref:2]
>>> Item 2, reference 2
>>> \stopitem
>>> \stopitemize
>>> 
>>> See \in{Item}[ref:b], \in[ref:2], \in[ref:1] above.
>>> 
>>> 
>>> \stoptext
>>> 
>>> 
>>>> Op 7 feb. 2018, om 11:03 heeft Wolfgang Schuster <schuster.wolfgang@gmail.com <mailto:schuster.wolfgang@gmail.com>> het volgende geschreven:
>>>> 
>>>> 
>>>> 
>>>>> r.ermers@hccnet.nl <mailto:r.ermers@hccnet.nl> 7. Februar 2018 um 10:58
>>>>> Hi Otared,
>>>>> 
>>>>> Thanks for your response. In mkii this worked flawlessly.
>>>>> 
>>>>> I tried it in mkiv Texlive too (2017.05.15 21:48), but it does not work. Could this be because I have item [it:ref] rather than \startitem[it:ref] … \stopitem?
>>>> 
>>>> It works for me with \item[<reference>] and \startitem[<reference>].
>>>> 
>>>> 
>>>> $ context --version
>>>> 
>>>> mtx-context     | current version: 2018.02.06 18:11
>>>> 
>>>> 
>>>> Wolfgang
>>>> ___________________________________________________________________________________
>>>> If your question is of interest to others as well, please add an entry to the Wiki!
>>>> 
>>>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
>>>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
>>>> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
>>>> wiki     : http://contextgarden.net <http://contextgarden.net/>
>>>> ___________________________________________________________________________________
>>> 
>>> ___________________________________________________________________________________
>>> If your question is of interest to others as well, please add an entry to the Wiki!
>>> 
>>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
>>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
>>> wiki     : http://contextgarden.net <http://contextgarden.net/>
>>> ___________________________________________________________________________________
>> 
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to the Wiki!
>> 
>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
>> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
>> wiki     : http://contextgarden.net <http://contextgarden.net/>
>> ___________________________________________________________________________________
> 
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 17773 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Latest beta: reference to items broken in mkiv
  2018-02-07 11:56           ` r.ermers
@ 2018-02-07 13:28             ` Otared Kavian
  2018-02-07 13:53             ` Otared Kavian
  1 sibling, 0 replies; 10+ messages in thread
From: Otared Kavian @ 2018-02-07 13:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 7439 bytes --]

Hi Robert,

Sorry I didn’t pay attention to the way you wanted the formatting of sub-items.
If you want to remove the separator between numbers, then you may add the following two line after the setups of your itemgroups:

\defineseparatorset[nothing][][]
\setupcounter[itemgroup:itemize][numberseparatorset=nothing]

This removes all the dots between the item sympbols or numbers.

Best regards: OK


> On 7 Feb 2018, at 12:56, r.ermers@hccnet.nl wrote:
> 
> Hi Otared,
> 
> Thanks, the solution works to some extend. It yields the following output.
> 
> 1. item 1
> 
> 1.a.  subitem a, reference a
> 
> 1.b.  item b
> 
> 		1.b.i. A sub-sub item
> 
> 		1.b.ii. Another sub-sub item, B 1.c. Item c, reference c
> 
> 2. Item 2, reference 2
> 
> See Item 1.b, see also items 2 and 1 above, as well as the sub-sub item 1.b.ii. 
> 
> 
> Yet the output I am looking for, and which I had in mkii, is:
> 1. item 1
> 
> a.  subitem a, reference a
> 
> b.  item b
> 
> 		i. A sub-sub item
> 
> 		ii. Another sub-sub item, B 1.c. Item c, reference c
> 
> 2. Item 2, reference 2
> 
> 
> See Item 1.b / 1b, see also items 2 and 1 above, as well as the sub-sub item 1.b.ii / 1bii. 
> 
> 
> Is this possible?
> 
> Regards,
> 
> Robert
> 
> 
> 
> 
>> Op 7 feb. 2018, om 12:37 heeft Otared Kavian <otared@gmail.com <mailto:otared@gmail.com>> het volgende geschreven:
>> 
>> Hi Robert,
>> 
>> I think the issue does not come from the version of Context you are using but rather from a lack of formatting your itemgroups with the keyword « repeat ».
>> 
>> I guess what you want to obtain can be achieved with the following example below. At least here with either versions of Context I have the output is as expected.
>> 
>> Best regards: OK
>> 
>> %% begin repeat-subitem.tex
>> \setupitemgroup[itemize][1][n,repeat][width=1em]
>> \setupitemgroup[itemize][2][a,repeat][width=2em]
>> \setupitemgroup[itemize][3][r][width=3em]
>> 
>> \starttext 
>> 
>> \startitemize[n]
>> \item[ref:1] item 1
>> 	\startitemize  
>> 		\startitem[ref:a]
>> 			subitem a, reference a
>> 		\stopitem
>> 		\item [ref:b] item b
>> 			\startitemize
>> 				\item A sub-sub item
>> 				\item[ref:subsub-B] Another sub-sub item, B
>> 			\stopitemize
>> 		\startitem[ref:c]
>> 			Item c, reference c
>> 		\stopitem
>> 	\stopitemize
>> 	\startitem[ref:2]
>> 		Item 2, reference 2
>> 	\stopitem
>> 
>> \stopitemize
>> \blank[big]
>> 
>> See \in{Item}[ref:b], see also items \in[ref:2] and \in[ref:1] above, as well as the \in{sub-sub item}[ref:subsub-B].
>> 
>> \stoptext
>> %% end repeat-subitem.tex
>> 
>> 
>> 
>>> On 7 Feb 2018, at 11:46, r.ermers@hccnet.nl <mailto:r.ermers@hccnet.nl> wrote:
>>> 
>>> Hi Wolfgang, Otared and others,
>>> 
>>> I installed a new standalone:
>>> 
>>> mtx-context     | main context file: /Applications/ContextStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv
>>> mtx-context     | current version: 2018.02.06 18:11
>>> 
>>> However, I do not manage to get it going. The minimal example underneath gives the following result:
>>> 1. item 1
>>> a. subitem a, reference a 
>>> 
>>> b. item b
>>> 
>>> c. Item c, reference c
>>> 
>>> 2. Item 2, reference 2 
>>> 
>>> 
>>> See Item b, 2, 1 above. 
>>> 
>>> This should be: 
>>> 
>>> See Item 1b, 2, 1 above.
>>> 
>>> Regards,
>>> 
>>> Robert
>>> 
>>> 
>>> 
>>> \starttext 
>>> 
>>> \startitemize[n]\starttext 
>>> 
>>> \startitemize[n]
>>> \item [ref:1] item 1
>>> \startitemize[a]
>>> \startitem[ref:a]
>>> subitem a, reference a
>>> \stopitem
>>> \item [ref:b] item b
>>> \startitem[ref:c]
>>> Item c, reference c
>>> \stopitem
>>> \stopitemize
>>> \startitem[ref:2]
>>> Item 2, reference 2
>>> \stopitem
>>> \stopitemize
>>> 
>>> See \in{Item}[ref:b], \in[ref:2], \in[ref:1] above.
>>> 
>>> 
>>> \stoptext
>>> 
>>> 
>>>> Op 7 feb. 2018, om 11:03 heeft Wolfgang Schuster <schuster.wolfgang@gmail.com <mailto:schuster.wolfgang@gmail.com>> het volgende geschreven:
>>>> 
>>>> 
>>>> 
>>>>> r.ermers@hccnet.nl <mailto:r.ermers@hccnet.nl> 7. Februar 2018 um 10:58
>>>>> Hi Otared,
>>>>> 
>>>>> Thanks for your response. In mkii this worked flawlessly.
>>>>> 
>>>>> I tried it in mkiv Texlive too (2017.05.15 21:48), but it does not work. Could this be because I have item [it:ref] rather than \startitem[it:ref] … \stopitem?
>>>> 
>>>> It works for me with \item[<reference>] and \startitem[<reference>].
>>>> 
>>>> 
>>>> $ context --version
>>>> 
>>>> mtx-context     | current version: 2018.02.06 18:11
>>>> 
>>>> 
>>>> Wolfgang
>>>> ___________________________________________________________________________________
>>>> If your question is of interest to others as well, please add an entry to the Wiki!
>>>> 
>>>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
>>>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
>>>> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
>>>> wiki     : http://contextgarden.net <http://contextgarden.net/>
>>>> ___________________________________________________________________________________
>>> 
>>> ___________________________________________________________________________________
>>> If your question is of interest to others as well, please add an entry to the Wiki!
>>> 
>>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
>>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
>>> wiki     : http://contextgarden.net <http://contextgarden.net/>
>>> ___________________________________________________________________________________
>> 
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to the Wiki!
>> 
>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
>> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
>> wiki     : http://contextgarden.net <http://contextgarden.net/>
>> ___________________________________________________________________________________
> 
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 17850 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Latest beta: reference to items broken in mkiv
  2018-02-07 11:37         ` Otared Kavian
@ 2018-02-07 11:56           ` r.ermers
  2018-02-07 13:28             ` Otared Kavian
  2018-02-07 13:53             ` Otared Kavian
  0 siblings, 2 replies; 10+ messages in thread
From: r.ermers @ 2018-02-07 11:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 5963 bytes --]

Hi Otared,

Thanks, the solution works to some extend. It yields the following output.

1. item 1

1.a.  subitem a, reference a

1.b.  item b

		1.b.i. A sub-sub item

		1.b.ii. Another sub-sub item, B 1.c. Item c, reference c

2. Item 2, reference 2

See Item 1.b, see also items 2 and 1 above, as well as the sub-sub item 1.b.ii. 


Yet the output I am looking for, and which I had in mkii, is:
1. item 1

a.  subitem a, reference a

b.  item b

		i. A sub-sub item

		ii. Another sub-sub item, B 1.c. Item c, reference c

2. Item 2, reference 2


See Item 1.b / 1b, see also items 2 and 1 above, as well as the sub-sub item 1.b.ii / 1bii. 


Is this possible?

Regards,

Robert




> Op 7 feb. 2018, om 12:37 heeft Otared Kavian <otared@gmail.com> het volgende geschreven:
> 
> Hi Robert,
> 
> I think the issue does not come from the version of Context you are using but rather from a lack of formatting your itemgroups with the keyword « repeat ».
> 
> I guess what you want to obtain can be achieved with the following example below. At least here with either versions of Context I have the output is as expected.
> 
> Best regards: OK
> 
> %% begin repeat-subitem.tex
> \setupitemgroup[itemize][1][n,repeat][width=1em]
> \setupitemgroup[itemize][2][a,repeat][width=2em]
> \setupitemgroup[itemize][3][r][width=3em]
> 
> \starttext 
> 
> \startitemize[n]
> \item[ref:1] item 1
> 	\startitemize  
> 		\startitem[ref:a]
> 			subitem a, reference a
> 		\stopitem
> 		\item [ref:b] item b
> 			\startitemize
> 				\item A sub-sub item
> 				\item[ref:subsub-B] Another sub-sub item, B
> 			\stopitemize
> 		\startitem[ref:c]
> 			Item c, reference c
> 		\stopitem
> 	\stopitemize
> 	\startitem[ref:2]
> 		Item 2, reference 2
> 	\stopitem
> 
> \stopitemize
> \blank[big]
> 
> See \in{Item}[ref:b], see also items \in[ref:2] and \in[ref:1] above, as well as the \in{sub-sub item}[ref:subsub-B].
> 
> \stoptext
> %% end repeat-subitem.tex
> 
> 
> 
>> On 7 Feb 2018, at 11:46, r.ermers@hccnet.nl <mailto:r.ermers@hccnet.nl> wrote:
>> 
>> Hi Wolfgang, Otared and others,
>> 
>> I installed a new standalone:
>> 
>> mtx-context     | main context file: /Applications/ContextStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv
>> mtx-context     | current version: 2018.02.06 18:11
>> 
>> However, I do not manage to get it going. The minimal example underneath gives the following result:
>> 1. item 1
>> a. subitem a, reference a 
>> 
>> b. item b
>> 
>> c. Item c, reference c
>> 
>> 2. Item 2, reference 2 
>> 
>> 
>> See Item b, 2, 1 above. 
>> 
>> This should be: 
>> 
>> See Item 1b, 2, 1 above.
>> 
>> Regards,
>> 
>> Robert
>> 
>> 
>> 
>> \starttext 
>> 
>> \startitemize[n]\starttext 
>> 
>> \startitemize[n]
>> \item [ref:1] item 1
>> \startitemize[a]
>> \startitem[ref:a]
>> subitem a, reference a
>> \stopitem
>> \item [ref:b] item b
>> \startitem[ref:c]
>> Item c, reference c
>> \stopitem
>> \stopitemize
>> \startitem[ref:2]
>> Item 2, reference 2
>> \stopitem
>> \stopitemize
>> 
>> See \in{Item}[ref:b], \in[ref:2], \in[ref:1] above.
>> 
>> 
>> \stoptext
>> 
>> 
>>> Op 7 feb. 2018, om 11:03 heeft Wolfgang Schuster <schuster.wolfgang@gmail.com <mailto:schuster.wolfgang@gmail.com>> het volgende geschreven:
>>> 
>>> 
>>> 
>>>> r.ermers@hccnet.nl <mailto:r.ermers@hccnet.nl> 7. Februar 2018 um 10:58
>>>> Hi Otared,
>>>> 
>>>> Thanks for your response. In mkii this worked flawlessly.
>>>> 
>>>> I tried it in mkiv Texlive too (2017.05.15 21:48), but it does not work. Could this be because I have item [it:ref] rather than \startitem[it:ref] … \stopitem?
>>> 
>>> It works for me with \item[<reference>] and \startitem[<reference>].
>>> 
>>> 
>>> $ context --version
>>> 
>>> mtx-context     | current version: 2018.02.06 18:11
>>> 
>>> 
>>> Wolfgang
>>> ___________________________________________________________________________________
>>> If your question is of interest to others as well, please add an entry to the Wiki!
>>> 
>>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
>>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
>>> wiki     : http://contextgarden.net <http://contextgarden.net/>
>>> ___________________________________________________________________________________
>> 
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to the Wiki!
>> 
>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
>> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
>> wiki     : http://contextgarden.net <http://contextgarden.net/>
>> ___________________________________________________________________________________
> 
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 15755 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Latest beta: reference to items broken in mkiv
  2018-02-07 10:46       ` r.ermers
@ 2018-02-07 11:37         ` Otared Kavian
  2018-02-07 11:56           ` r.ermers
  0 siblings, 1 reply; 10+ messages in thread
From: Otared Kavian @ 2018-02-07 11:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 4191 bytes --]

Hi Robert,

I think the issue does not come from the version of Context you are using but rather from a lack of formatting your itemgroups with the keyword « repeat ».

I guess what you want to obtain can be achieved with the following example below. At least here with either versions of Context I have the output is as expected.

Best regards: OK

%% begin repeat-subitem.tex
\setupitemgroup[itemize][1][n,repeat][width=1em]
\setupitemgroup[itemize][2][a,repeat][width=2em]
\setupitemgroup[itemize][3][r][width=3em]

\starttext 

\startitemize[n]
\item[ref:1] item 1
	\startitemize  
		\startitem[ref:a]
			subitem a, reference a
		\stopitem
		\item [ref:b] item b
			\startitemize
				\item A sub-sub item
				\item[ref:subsub-B] Another sub-sub item, B
			\stopitemize
		\startitem[ref:c]
			Item c, reference c
		\stopitem
	\stopitemize
	\startitem[ref:2]
		Item 2, reference 2
	\stopitem

\stopitemize
\blank[big]

See \in{Item}[ref:b], see also items \in[ref:2] and \in[ref:1] above, as well as the \in{sub-sub item}[ref:subsub-B].

\stoptext
%% end repeat-subitem.tex



> On 7 Feb 2018, at 11:46, r.ermers@hccnet.nl wrote:
> 
> Hi Wolfgang, Otared and others,
> 
> I installed a new standalone:
> 
> mtx-context     | main context file: /Applications/ContextStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv
> mtx-context     | current version: 2018.02.06 18:11
> 
> However, I do not manage to get it going. The minimal example underneath gives the following result:
> 1. item 1
> a. subitem a, reference a 
> 
> b. item b
> 
> c. Item c, reference c
> 
> 2. Item 2, reference 2 
> 
> 
> See Item b, 2, 1 above. 
> 
> This should be: 
> 
> See Item 1b, 2, 1 above.
> 
> Regards,
> 
> Robert
> 
> 
> 
> \starttext 
> 
> \startitemize[n]\starttext 
> 
> \startitemize[n]
> \item [ref:1] item 1
> \startitemize[a]
> \startitem[ref:a]
> subitem a, reference a
> \stopitem
> \item [ref:b] item b
> \startitem[ref:c]
> Item c, reference c
> \stopitem
> \stopitemize
> \startitem[ref:2]
> Item 2, reference 2
> \stopitem
> \stopitemize
> 
> See \in{Item}[ref:b], \in[ref:2], \in[ref:1] above.
> 
> 
> \stoptext
> 
> 
>> Op 7 feb. 2018, om 11:03 heeft Wolfgang Schuster <schuster.wolfgang@gmail.com <mailto:schuster.wolfgang@gmail.com>> het volgende geschreven:
>> 
>> 
>> 
>>> r.ermers@hccnet.nl <mailto:r.ermers@hccnet.nl> 7. Februar 2018 um 10:58
>>> Hi Otared,
>>> 
>>> Thanks for your response. In mkii this worked flawlessly.
>>> 
>>> I tried it in mkiv Texlive too (2017.05.15 21:48), but it does not work. Could this be because I have item [it:ref] rather than \startitem[it:ref] … \stopitem?
>> 
>> It works for me with \item[<reference>] and \startitem[<reference>].
>> 
>> 
>> $ context --version
>> 
>> mtx-context     | current version: 2018.02.06 18:11
>> 
>> 
>> Wolfgang
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to the Wiki!
>> 
>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
>> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
>> wiki     : http://contextgarden.net <http://contextgarden.net/>
>> ___________________________________________________________________________________
> 
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 10974 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Latest beta: reference to items broken in mkiv
  2018-02-07 10:03     ` Wolfgang Schuster
@ 2018-02-07 10:46       ` r.ermers
  2018-02-07 11:37         ` Otared Kavian
  0 siblings, 1 reply; 10+ messages in thread
From: r.ermers @ 2018-02-07 10:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2094 bytes --]

Hi Wolfgang, Otared and others,

I installed a new standalone:

mtx-context     | main context file: /Applications/ContextStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context     | current version: 2018.02.06 18:11

However, I do not manage to get it going. The minimal example underneath gives the following result:
1. item 1
a. subitem a, reference a 

b. item b

c. Item c, reference c

2. Item 2, reference 2 

See Item b, 2, 1 above. 

This should be: 

See Item 1b, 2, 1 above.

Regards,

Robert



\starttext 

\startitemize[n]\starttext 

\startitemize[n]
\item [ref:1] item 1
\startitemize[a]
\startitem[ref:a]
subitem a, reference a
\stopitem
\item [ref:b] item b
\startitem[ref:c]
Item c, reference c
\stopitem
\stopitemize
\startitem[ref:2]
Item 2, reference 2
\stopitem
\stopitemize

See \in{Item}[ref:b], \in[ref:2], \in[ref:1] above.


\stoptext


> Op 7 feb. 2018, om 11:03 heeft Wolfgang Schuster <schuster.wolfgang@gmail.com> het volgende geschreven:
> 
> 
> 
>> r.ermers@hccnet.nl <mailto:r.ermers@hccnet.nl> 7. Februar 2018 um 10:58
>> Hi Otared,
>> 
>> Thanks for your response. In mkii this worked flawlessly.
>> 
>> I tried it in mkiv Texlive too (2017.05.15 21:48), but it does not work. Could this be because I have item [it:ref] rather than \startitem[it:ref] … \stopitem?
> 
> It works for me with \item[<reference>] and \startitem[<reference>].
> 
> 
> $ context --version
> 
> mtx-context     | current version: 2018.02.06 18:11
> 
> 
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 6524 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Latest beta: reference to items broken in mkiv
  2018-02-07  9:58   ` r.ermers
@ 2018-02-07 10:03     ` Wolfgang Schuster
  2018-02-07 10:46       ` r.ermers
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2018-02-07 10:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 481 bytes --]



> r.ermers@hccnet.nl <mailto:r.ermers@hccnet.nl>
> 7. Februar 2018 um 10:58
> Hi Otared,
>
> Thanks for your response. In mkii this worked flawlessly.
>
> I tried it in mkiv Texlive too (2017.05.15 21:48), but it does not 
> work. Could this be because I have item [it:ref] rather than 
> \startitem[it:ref] … \stopitem?

It works for me with \item[<reference>] and \startitem[<reference>].


$ context --version

mtx-context     | current version: 2018.02.06 18:11


Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1801 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Latest beta: reference to items broken in mkiv
       [not found] ` <A58B6AB4-C2E8-43AB-94FB-8B79B2C10F2D@gmail.com>
@ 2018-02-07  9:58   ` r.ermers
  2018-02-07 10:03     ` Wolfgang Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: r.ermers @ 2018-02-07  9:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2405 bytes --]

Hi Otared,

Thanks for your response. In mkii this worked flawlessly.

I tried it in mkiv Texlive too (2017.05.15 21:48), but it does not work. Could this be because I have item [it:ref] rather than \startitem[it:ref] … \stopitem?

Anyway, I will install a new standalone - on my Mac (no TeXShop).

Robert


> Op 7 feb. 2018, om 10:47 heeft Otared Kavian <otared@gmail.com> het volgende geschreven:
> 
> Hi Robert,
> 
> Indeed the bug has been fixed: the reference to items works fine in all recent Context betas, and also with the version from TeXLive 2017 (version 2017.05.15 21:48).
> 
> I don’t have the current version 2017.07.17 00:20 in order to test the example your are mentionning, but if your current version of Context comes from TeXLive, maybe you can update it. Otherwise, the installation of a standalone version is not that complicated and it is really worth it.
> If you are using MacOS X and TeXShop, in case you would need help to install a standalone version do not hesitate to ask me.
> 
> Best regards: Otared K.
> 
>> On 7 Feb 2018, at 09:38, r.ermers@hccnet.nl wrote:
>> 
>> Hi Otared,
>> 
>> I wonder if the problem with the referencing to items you signalled has been solved in a later version (see text below). I am running into the same issue. My context version: current version: 2017.07.17 00:20.
>> 
>> If it is not, I will do with a makeshift solution for now; if the problem has been handled, I consider installing a new standalone. (Installing a standalone is usally a bit of a fuzz.)
>> 
>> Thanks in advance for your reply,
>> 
>> Best wishes,
>> 
>> Robert
>> 
>> Otared Kavian Wed, 01 Apr 2015 01:23:29 -0700
>> 
>> Hi Hans,
>> 
>> It seems that referencing to items is broken in the latest beta mkiv: for 
>> example in the example below the command
>>        \in{Item}[ref:2]
>> does not show item number 2.
>> However it works fine in mkii and previous releases.
>> Best regards: OK
>> PS: a minimal example follows
>> %%% begin ref-item-broken.tex
>> \starttext 
>> 
>> \startitemize[n]
>> 
>> \startitem[ref:1]
>> Item 1, reference 1
>> \stopitem
>> 
>> \startitem[ref:2]
>> Item 2, reference 2
>> \stopitem
>> 
>> \startitem[ref:3]
>> Item 3, reference 3
>> \stopitem
>> 
>> \stopitemize
>> 
>> See \in{Item}[ref:2] above.
>> 
>> \stoptext
>> %%% end ref-item-broken.tex
>> 
>> 
> 


[-- Attachment #1.2: Type: text/html, Size: 3801 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-02-09 16:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-01  8:24 Latest beta: reference to items broken in mkiv Otared Kavian
     [not found] <F473C14E-DAEF-4EEE-8061-62A36000F454@hccnet.nl>
     [not found] ` <A58B6AB4-C2E8-43AB-94FB-8B79B2C10F2D@gmail.com>
2018-02-07  9:58   ` r.ermers
2018-02-07 10:03     ` Wolfgang Schuster
2018-02-07 10:46       ` r.ermers
2018-02-07 11:37         ` Otared Kavian
2018-02-07 11:56           ` r.ermers
2018-02-07 13:28             ` Otared Kavian
2018-02-07 13:53             ` Otared Kavian
2018-02-07 15:59               ` r.ermers
2018-02-09 16:18               ` r.ermers

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).