Hi Hraban, thanks for your answer, however this is not precisely what I am talking about. If you have 3 figures in chapter 1, you want them to be numbered as 1.1 , 1.2 , 1.3. However with floats defined with \definefloat[Afigure][Afigures][figure] they all get solely the chapter number: 1. Kind regards Willi
On 30 Mar 2023, at 18:01, Henning Hraban Ramm via ntg-context
wrote: Am 30.03.23 um 17:09 schrieb Willi Egger via ntg-context:
I am still working on the previously mentioned project, consisting out of different parts. There are about 25 chapters in each part and most of the chapters contain figures. When using the predefined figure environment, then all figures in the figure-list are placed correctly though at each part the numbering restarts. Now I tried to implement for each part its own float environment, which enables me to produce a figure-list per part with subtitels. How ever in the newly defined floats there is no continuous numbering i.e. chapternumber.serialnumber. Instead each float get the chapter number only. How to get the numbering right?
You can define the resetting of numbering with \setupcaption[Afigure][way=bytext|bypart|bychapter].
For the list, \placelist[Afigure][criterium=chapter] (or local?) should work.
HTH, Hraban ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________