Hello everybody,

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?

Kind regards
Willi

The following example shows what happens:

\useMPlibrary[dum]

\definefloat[Afigure][Afigures][figures]
\definefloat[Bfigure][Bfigures][figures]

\setuphead
        [part]
        [placehead=yes,
         page=yes]

\setuphead
  [chapter]
        [page=no]        

\starttext

\starttitle[title=List of figures]
  \startsubject[title=Figures (predefined figureenvironment)]
    \placelistoffigures
  \stopsubject

  \startsubject[title=Figures A]
        \placelistofAfigures
  \stopsubject

  \startsubject[title=Figures B]
    \placelistofBfigures
  \stopsubject
\stoptitle

\startpart[title=Part ONE]
\startchapter[title={Chapter one in part one}] %les21

\startplaceAfigure
        [location=left,
         reference=fig:dumA,
         title={Dummy A}]
        {\externalfigure[dummy][width=0.6\textwidth]}
\stopplaceAfigure

\startplacefigure
        [location=left,
         reference=fig:dumB,
         title={Dummy B}]
        {\externalfigure[dummy][width=0.6\textwidth]}
\stopplacefigure

\startsection[title=Section A]

\startplaceAfigure
        [location=left,
         reference=fig:dumC,
         title={Dummy C}]
        {\externalfigure[dummy][width=0.6\textwidth]}
\stopplaceAfigure

\stopsection
\stopchapter
\stoppart

\startpart[title=Part TWO]
\startchapter[title=Chapter one in part two]

\startplaceBfigure
        [location=left,
         reference=fig:dumD,
         title={Dummy D}]
        {\externalfigure[dummy][width=0.6\textwidth]}
\stopplaceBfigure
\stopchapter
\stoppart
\stoptext

Attachment: test.pdf
Description: Adobe PDF document

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to