ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: "\setuplabeltext [appendix=Appendix ]" broken mkiv
Date: Tue, 16 Feb 2010 22:39:46 +0100	[thread overview]
Message-ID: <6faad9f01002161339ped41914u83a1d201ea5715e4@mail.gmail.com> (raw)
In-Reply-To: <201002151631.21610.alan.braslau@cea.fr>

On Mon, Feb 15, 2010 at 16:31, Alan BRASLAU wrote:
> 1. Setting the labeltext "appendix=Appendix " with \startappendices
>   is broken in mkiv; somewhat works in mkii. What am I doing wrong?
> 2. How to set the label correctly in the TOC?
>
> Alan
>
> Minimal example
>
> \setuplabeltext [chapter=Chapter ]   % with trailing space; blank by default
> \setuplabeltext [appendix=Appendix ] % with trailing space; blank by default
> \setuphead [chapter] [placehead=yes]
> \setuplist [chapter] [label=yes,width=5em,alternative=c]
>
> \starttext
>
> \startfrontmatter
> \completecontent
> \stopfrontmatter
>
> \startbodymatter
> \chapter {one}
> \input knuth
> \stopbodymatter
>
> \startappendices
> \chapter {first}
> \input knuth
> \stopappendices
>
> \stoptext

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").

Mojca
___________________________________________________________________________________
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-16 21:39 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 [this message]
2010-02-16 22:03   ` Hans Hagen
2010-02-16 22:21   ` Hans Hagen
2010-02-17 17:44     ` Alan BRASLAU
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=6faad9f01002161339ped41914u83a1d201ea5715e4@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.com \
    --cc=ntg-context@ntg.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).