On Tuesday 16 February 2010 23:21:31 Hans Hagen wrote:
> On 16-2-2010 22:39, Mojca Miklavec wrote:
> > While you keep Hans and others busy, here's another thing that puzzled
> > me:
> >
> > \definehead[appendix][chapter]
> > \definehead[subappendix][section]
> >
> > \starttext
> >
> > \startappendices
> > \appendix{one}
> > \subappendix{one.one}
> > \appendix{two}
> > \subappendix{two.one}
> > \stopappendices
> >
> > \stoptext
> >
> > In mkii it gives A.1 and B.1 for numbering, but in mkiv it gives A.1
> > and B.2 (it forgets to reset the counter for "subappendix").
> 
> \definestructureresetset      [\v!appendix:\s!default] [] [1] % why was
> this 0

Why \definehead[appendix][chapter]?
Why not use \chapter{} and \section{}
within \startappendices\stopappendices?

\chapter{} and \section{} get put into the TOC.
 (However, there is a bug and they do not get the proper label:
  \setlabeltext [appendix=Appendix ] in the head;
  \setlabeltext [chapter=Chapter ] in the list.)

\appendix{} does not get put into the TOC
so it works like \title{} rather than \chapter{}

Another (related) bug:
within \startbackmatter\stopbackmatter
\chapter{} (also coming from \completecontent)
indeed does not add the labeltext to the head (and are unnumbered)
but does add the \setlabeltext [chapter=Chapter ] to the TOC yielding:
"Chapter  References"
"Chapter  Index"
"Chapter  Table of Contents"

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

Reply via email to