# [NTG-context] Numbering of figures (was listoffloats question)

Willi Egger w.egger at boede.nl
Tue Sep 5 10:21:23 CEST 2006

Hi Hans and Taco

Playing with figures and listings I detected the following:
(ConTeXt  ver: 2006.08.08 17:52  fmt: 2006.8.8  int: english  mes: english)

\mainlanguage[de]
\definefloat[SMUfigur][SMUfiguren]
\definefloat[BAINFfigur][BAINFfiguren]

Those floats are used together with the readily available figure-float
in the following structure:

\part{First}
\chapter
\section
...

\part{Second}
\chapter
\section
...
.....

This structure is embedded in a project-structure. The figures are

Now if the \completelistoffiigures, \completelistofSMUfiguren,
\completelistofBAINFfiguren are issued, each list gets correctly  its
own  incremental numbering.

However if the above defined floats are defined in order to inherit from
the figure-environment

\definefloat[SMUfigur][SMUfiguren][figure]
\definefloat[BAINFfigur][BAINFfiguren][figure]

then the numbering gets confused. i.e.. the first SMUfigur, which occurs
in the first part in chapter 2 gets numbered 2.0. instead of 2.15.
Further numbering in the second part gets even more confusing. The first
SMUfigur appears in the first chapter and gets numbered 1.-14, which
should be 1.9. The next figure, which is also a SMUfigur gets numbered
1.-13 instead of 1.10. This is repeated for the third SMUfigur: 1.-12
instead of 1.11 - Puzzling is the - sign.and the reverse order of the
number.

Could one of you please have a look at this?

Thanks
Willi