ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan BRASLAU <alan.braslau@cea.fr>
To: ntg-context@ntg.nl
Cc: Hans Hagen <pragma@wxs.nl>,
	Mojca Miklavec <mojca.miklavec.lists@gmail.com>
Subject: Re: "\setuplabeltext [appendix=Appendix ]" broken mkiv
Date: Wed, 17 Feb 2010 18:44:12 +0100	[thread overview]
Message-ID: <201002171844.12493.alan.braslau@cea.fr> (raw)
In-Reply-To: <4B7B1A6B.2030503@wxs.nl>

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	other threads:[~2010-02-17 17:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-15 15:31 Alan BRASLAU
2010-02-16 21:39 ` Mojca Miklavec
2010-02-16 22:03   ` Hans Hagen
2010-02-16 22:21   ` Hans Hagen
2010-02-17 17:44     ` Alan BRASLAU [this message]
2010-02-17 21:30       ` Mojca Miklavec
2010-02-17 21:36         ` Hans Hagen
2010-05-23 12:02           ` Alan BRASLAU

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201002171844.12493.alan.braslau@cea.fr \
    --to=alan.braslau@cea.fr \
    --cc=mojca.miklavec.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).