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
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
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 ___________________________________________________________________________________
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 -----------------------------------------------------------------
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
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 -----------------------------------------------------------------
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 -----------------------------------------------------------------
On 4 avr. 2013, at 23:13, Hans Hagen
[…] \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 ___________________________________________________________________________________
Am 05.04.2013 um 11:31 schrieb Otared Kavian
On 4 avr. 2013, at 23:13, Hans Hagen
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
On 5 avr. 2013, at 14:48, Wolfgang Schuster
Am 05.04.2013 um 11:31 schrieb Otared Kavian
: On 4 avr. 2013, at 23:13, Hans Hagen
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
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 ___________________________________________________________________________________
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 ___________________________________________________________________________________
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
participants (6)
-
Aditya Mahajan
-
Hans Hagen
-
Matthias Weber
-
Otared Kavian
-
Willi Egger
-
Wolfgang Schuster