* Resetting enumeration numbers
@ 2013-04-04 20:01 Willi Egger
2013-04-04 20:45 ` Matthias Weber
2013-04-04 21:14 ` Aditya Mahajan
0 siblings, 2 replies; 12+ messages in thread
From: Willi Egger @ 2013-04-04 20:01 UTC (permalink / raw)
To: NTG-Context ConTeXt users
Hi all,
I have a document, wherein reside chapters and sections. I have an enumeration defined which is used in the sections. What I would like to achieve is, to reset the numbering at the beginning of each section.
How is this done?
Kind regards
Willi
___________________________________________________________________________________
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] 12+ messages in thread
* Re: Resetting enumeration numbers
2013-04-04 20:01 Resetting enumeration numbers Willi Egger
@ 2013-04-04 20:45 ` Matthias Weber
2013-04-04 21:12 ` Hans Hagen
2013-04-04 21:13 ` Hans Hagen
2013-04-04 21:14 ` Aditya Mahajan
1 sibling, 2 replies; 12+ messages in thread
From: Matthias Weber @ 2013-04-04 20:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
This might not be the best way to do it, but when I need it, I use
\resetnumber[problem]
for my
\startproblem
\stopproblem
enumeration.
Matthias
On Apr 4, 2013, at 4:01 PM, Willi Egger <context@boede.nl> wrote:
> Hi all,
>
> I have a document, wherein reside chapters and sections. I have an enumeration defined which is used in the sections. What I would like to achieve is, to reset the numbering at the beginning of each section.
> How is this done?
>
> Kind regards
>
>
> Willi
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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] 12+ messages in thread
* Re: Resetting enumeration numbers
2013-04-04 20:45 ` Matthias Weber
@ 2013-04-04 21:12 ` Hans Hagen
2013-04-04 21:18 ` Aditya Mahajan
2013-04-04 21:13 ` Hans Hagen
1 sibling, 1 reply; 12+ messages in thread
From: Hans Hagen @ 2013-04-04 21:12 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Matthias Weber
On 4/4/2013 10:45 PM, Matthias Weber wrote:
> This might not be the best way to do it, but when I need it, I use
>
> \resetnumber[problem]
>
> for my
>
> \startproblem
>
> \stopproblem
>
> enumeration.
\defineenumeration[test]
\setupenumeration[test][way=bysection]
\starttext
\startsection[title=one]
\starttest alpha \stoptest
\starttest beta \stoptest
\stopsection
\startsection[title=two]
\starttest alpha \stoptest
\starttest beta \stoptest
\stopsection
\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] 12+ messages in thread
* Re: Resetting enumeration numbers
2013-04-04 21:12 ` Hans Hagen
@ 2013-04-04 21:18 ` Aditya Mahajan
2013-04-04 21:50 ` Hans Hagen
0 siblings, 1 reply; 12+ messages in thread
From: Aditya Mahajan @ 2013-04-04 21:18 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Thu, 4 Apr 2013, Hans Hagen wrote:
> On 4/4/2013 10:45 PM, Matthias Weber wrote:
>> This might not be the best way to do it, but when I need it, I use
>>
>> \resetnumber[problem]
>>
>> for my
>>
>> \startproblem
>>
>> \stopproblem
>>
>> enumeration.
>
> \defineenumeration[test]
>
> \setupenumeration[test][way=bysection]
I was testing with \definenumeration[test][way=bysection] but that did not
work. Is that a bug?
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] 12+ messages in thread
* Re: Resetting enumeration numbers
2013-04-04 21:18 ` Aditya Mahajan
@ 2013-04-04 21:50 ` Hans Hagen
0 siblings, 0 replies; 12+ messages in thread
From: Hans Hagen @ 2013-04-04 21:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 4/4/2013 11:18 PM, Aditya Mahajan wrote:
> On Thu, 4 Apr 2013, Hans Hagen wrote:
>
>> On 4/4/2013 10:45 PM, Matthias Weber wrote:
>>> This might not be the best way to do it, but when I need it, I use
>>>
>>> \resetnumber[problem]
>>>
>>> for my
>>>
>>> \startproblem
>>>
>>> \stopproblem
>>>
>>> enumeration.
>>
>> \defineenumeration[test]
>>
>> \setupenumeration[test][way=bysection]
>
> I was testing with \definenumeration[test][way=bysection] but that did
> not work. Is that a bug?
i noticed too ... I've just added a synchronize to the definers too
-----------------------------------------------------------------
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] 12+ messages in thread
* Re: Resetting enumeration numbers
2013-04-04 20:45 ` Matthias Weber
2013-04-04 21:12 ` Hans Hagen
@ 2013-04-04 21:13 ` Hans Hagen
2013-04-05 9:31 ` Otared Kavian
2013-04-05 14:08 ` Willi Egger
1 sibling, 2 replies; 12+ messages in thread
From: Hans Hagen @ 2013-04-04 21:13 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Matthias Weber
On 4/4/2013 10:45 PM, Matthias Weber wrote:
> This might not be the best way to do it, but when I need it, I use
>
> \resetnumber[problem]
>
> for my
>
> \startproblem
>
> \stopproblem
>
> enumeration.
\defineenumeration[test]
\setupenumeration[test][way=bysection]
\starttext
\startsection[title=one]
\starttest alpha \stoptest
\starttest beta \stoptest
\stopsection
\startsection[title=two]
\starttest alpha \stoptest
\starttest beta \stoptest
\stopsection
\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] 12+ messages in thread
* Re: Resetting enumeration numbers
2013-04-04 21:13 ` Hans Hagen
@ 2013-04-05 9:31 ` Otared Kavian
2013-04-05 12:48 ` Wolfgang Schuster
2013-04-05 14:08 ` Willi Egger
1 sibling, 1 reply; 12+ messages in thread
From: Otared Kavian @ 2013-04-05 9:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1469 bytes --]
On 4 avr. 2013, at 23:13, Hans Hagen <pragma@wxs.nl> wrote:
> […]
> \defineenumeration[test]
>
> \setupenumeration[test][way=bysection]
^^^^^
This should rather be
\setupenumerations[test][way=bysection]
Best regards: OK
>
> \starttext
> \startsection[title=one]
> \starttest alpha \stoptest
> \starttest beta \stoptest
> \stopsection
> \startsection[title=two]
> \starttest alpha \stoptest
> \starttest beta \stoptest
> \stopsection
> \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
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 3139 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] 12+ messages in thread
* Re: Resetting enumeration numbers
2013-04-05 9:31 ` Otared Kavian
@ 2013-04-05 12:48 ` Wolfgang Schuster
2013-04-05 13:07 ` Otared Kavian
0 siblings, 1 reply; 12+ messages in thread
From: Wolfgang Schuster @ 2013-04-05 12:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 496 bytes --]
Am 05.04.2013 um 11:31 schrieb Otared Kavian <otared@gmail.com>:
>
> On 4 avr. 2013, at 23:13, Hans Hagen <pragma@wxs.nl> wrote:
>> […]
>> \defineenumeration[test]
>>
>> \setupenumeration[test][way=bysection]
> ^^^^^
> This should rather be
> \setupenumerations[test][way=bysection]
No, \setupenumeration is the correct command for MkIV, the plural form
\setupenumerations is only a synonym and was added for backwards compatibility.
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1335 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] 12+ messages in thread
* Re: Resetting enumeration numbers
2013-04-05 12:48 ` Wolfgang Schuster
@ 2013-04-05 13:07 ` Otared Kavian
0 siblings, 0 replies; 12+ messages in thread
From: Otared Kavian @ 2013-04-05 13:07 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 916 bytes --]
On 5 avr. 2013, at 14:48, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
>
> Am 05.04.2013 um 11:31 schrieb Otared Kavian <otared@gmail.com>:
>
>>
>> On 4 avr. 2013, at 23:13, Hans Hagen <pragma@wxs.nl> wrote:
>>> […]
>>> \defineenumeration[test]
>>>
>>> \setupenumeration[test][way=bysection]
>> ^^^^^
>> This should rather be
>> \setupenumerations[test][way=bysection]
>
> No, \setupenumeration is the correct command for MkIV, the plural form
> \setupenumerations is only a synonym and was added for backwards compatibility.
Thanks Wolfgang, of course you are right and somehow I overlooked this change…
However on the Garden, there is a description for \setupenumerations
http://wiki.contextgarden.net/Command/setupenumerations
but nothing about \ setupenumeration. Later today I'll add a few words on the latter to the wiki.
Best regards: OK
[-- Attachment #1.2: Type: text/html, Size: 2238 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] 12+ messages in thread
* Re: Resetting enumeration numbers
2013-04-04 21:13 ` Hans Hagen
2013-04-05 9:31 ` Otared Kavian
@ 2013-04-05 14:08 ` Willi Egger
2013-04-05 14:13 ` Willi Egger
1 sibling, 1 reply; 12+ messages in thread
From: Willi Egger @ 2013-04-05 14:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
Thank you folks!
about the synchronization I did not write, but in my case there was also something with interference when using subsubject paragraphs inside a section, then the counter was reset although I had set the "way=bysection"...
I will now donwload the latest beta and see ....
Thanks!
Willi
On Apr 4, 2013, at 11:13 PM, Hans Hagen wrote:
> On 4/4/2013 10:45 PM, Matthias Weber wrote:
>> This might not be the best way to do it, but when I need it, I use
>>
>> \resetnumber[problem]
>>
>> for my
>>
>> \startproblem
>>
>> \stopproblem
>>
>> enumeration.
>
> \defineenumeration[test]
>
> \setupenumeration[test][way=bysection]
>
> \starttext
> \startsection[title=one]
> \starttest alpha \stoptest
> \starttest beta \stoptest
> \stopsection
> \startsection[title=two]
> \starttest alpha \stoptest
> \starttest beta \stoptest
> \stopsection
> \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
> ___________________________________________________________________________________
___________________________________________________________________________________
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] 12+ messages in thread
* Re: Resetting enumeration numbers
2013-04-05 14:08 ` Willi Egger
@ 2013-04-05 14:13 ` Willi Egger
0 siblings, 0 replies; 12+ messages in thread
From: Willi Egger @ 2013-04-05 14:13 UTC (permalink / raw)
To: mailing list for ConTeXt users
Great! It works now as expected. Thank you Hans for the fix!
Willi
On Apr 5, 2013, at 4:08 PM, Willi Egger wrote:
> Thank you folks!
>
> about the synchronization I did not write, but in my case there was also something with interference when using subsubject paragraphs inside a section, then the counter was reset although I had set the "way=bysection"...
>
>
> I will now donwload the latest beta and see ....
>
> Thanks!
>
> Willi
> On Apr 4, 2013, at 11:13 PM, Hans Hagen wrote:
>
>> On 4/4/2013 10:45 PM, Matthias Weber wrote:
>>> This might not be the best way to do it, but when I need it, I use
>>>
>>> \resetnumber[problem]
>>>
>>> for my
>>>
>>> \startproblem
>>>
>>> \stopproblem
>>>
>>> enumeration.
>>
>> \defineenumeration[test]
>>
>> \setupenumeration[test][way=bysection]
>>
>> \starttext
>> \startsection[title=one]
>> \starttest alpha \stoptest
>> \starttest beta \stoptest
>> \stopsection
>> \startsection[title=two]
>> \starttest alpha \stoptest
>> \starttest beta \stoptest
>> \stopsection
>> \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
>> ___________________________________________________________________________________
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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] 12+ messages in thread
* Re: Resetting enumeration numbers
2013-04-04 20:01 Resetting enumeration numbers Willi Egger
2013-04-04 20:45 ` Matthias Weber
@ 2013-04-04 21:14 ` Aditya Mahajan
1 sibling, 0 replies; 12+ messages in thread
From: Aditya Mahajan @ 2013-04-04 21:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Thu, 4 Apr 2013, Willi Egger wrote:
> Hi all,
>
> I have a document, wherein reside chapters and sections. I have an
> enumeration defined which is used in the sections. What I would like to
> achieve is, to reset the numbering at the beginning of each section. How
> is this done?
\defineenumeration defines a number with the same name, so you can use
\setupnumber to modify the behavior of the number.
\defineenumeration[whatever]
\setupnumber[whatever][way=bysection]
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] 12+ messages in thread
end of thread, other threads:[~2013-04-05 14:13 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-04 20:01 Resetting enumeration numbers Willi Egger
2013-04-04 20:45 ` Matthias Weber
2013-04-04 21:12 ` Hans Hagen
2013-04-04 21:18 ` Aditya Mahajan
2013-04-04 21:50 ` Hans Hagen
2013-04-04 21:13 ` Hans Hagen
2013-04-05 9:31 ` Otared Kavian
2013-04-05 12:48 ` Wolfgang Schuster
2013-04-05 13:07 ` Otared Kavian
2013-04-05 14:08 ` Willi Egger
2013-04-05 14:13 ` Willi Egger
2013-04-04 21:14 ` Aditya Mahajan
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).