Index: makeinfo/sectioning.c =================================================================== RCS file: /cvsroot/texinfo/texinfo/makeinfo/sectioning.c,v retrieving revision 1.10 diff -u -p -r1.10 sectioning.c --- makeinfo/sectioning.c 18 Feb 2004 13:58:14 -0000 1.10 +++ makeinfo/sectioning.c 20 Feb 2004 02:40:39 -0000 @@ -291,20 +291,22 @@ static char * handle_enum_increment (int level, int index) { /* Here is how TeX handles enumeration: - - Anything below @unnumbered is not enumerated. - - Counters are incremented below @chapter and @appendix, but not - printed for their @unnumbered* children. */ + - Anything starting with @unnumbered is not enumerated. + - @majorheading and the like are not enumberated. */ int i; /* First constraint above. */ if (enum_marker == UNNUMBERED_MAGIC && level == 0) return xstrdup (""); + /* Second constraint. */ + if (section_alist[index].num == ENUM_SECT_NO) + return xstrdup (""); + /* reset all counters which are one level deeper */ for (i = level; i < 3; i++) numbers [i + 1] = 0; - /* Second constraint. */ numbers[level]++; if (section_alist[index].num == ENUM_SECT_NO || enum_marker == UNNUMBERED_MAGIC || !number_sections)