ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: <Robin.Kirkham@csiro.au>
To: <ntg-context@ntg.nl>
Subject: Help with \setuplist number width (for appendices)
Date: Mon, 23 Mar 2015 09:29:26 +0000	[thread overview]
Message-ID: <51FB8AB6-CA23-4815-A886-B779626C2F70@csiro.au> (raw)

[-- Attachment #1: Type: text/plain, Size: 940 bytes --]

Dear List,

I’m implementing a predefined document style. This requires chapters numbered 1, 2, 3 … and appendices numbered Appendix A, Appendix B, Appendix C, … both in the actual heads and also the table of contents.

The style also requires the chapter numbers in the table of contents to be set in a 12mm column. The MWE below does all this, but for the appendices the number overflows the 12mm width, which is ugly of course. So I need to specify either a width with some stretch so the list layout will adapt, or somehow be able to specify a different width for the appendix entries.

Any help appreciated,

Robin

\setuplist[chapter][
    width=12mm,         % but want 30mm for appendices
    label=yes,
    alternative=c]

\setuplabeltext[appendix=Appendix\space]

\starttext
\completecontent

\chapter{One}
\chapter{Two}

\startappendices
\chapter{First}
\chapter{Second}
\stopappendices

\stoptext


[-- Attachment #2: contents.pdf --]
[-- Type: application/pdf, Size: 12281 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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:[~2015-03-23  9:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-23  9:29 Robin.Kirkham [this message]
2015-03-23 11:42 ` Wolfgang Schuster
     [not found] <mailman.403.1427184108.2410.ntg-context@ntg.nl>
2015-03-25 10:59 ` Robin.Kirkham

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=51FB8AB6-CA23-4815-A886-B779626C2F70@csiro.au \
    --to=robin.kirkham@csiro.au \
    --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).