ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Duncan Hothersall <dh@capdm.com>
Subject: Re: Getting ToC to match page numbering
Date: Tue, 02 Aug 2005 12:22:51 +0100	[thread overview]
Message-ID: <42EF578B.3050909@capdm.com> (raw)
In-Reply-To: <20050801163617.8E7D7127C9@ronja.ntg.nl>

Hans said:

>>wikiable:

And I said:

> Will do; would be great to fix (or at least understand) the alignment
> before I do though, for completeness. :-)

I've added this to the wiki now, since having tested it out I don't
think my alignment problems were anything to do with the issue at hand.

To fix the alignment, I have now defined:
\def\GenPagecommand#1{\hfill\llap{#1}}
and said:
pagecommand=\GenPagecommand
for every setuplist except those which require prefixes. This allows me
to have very large page numbers and long prefixes without seeing the
page number alignment go all squiggly.

The appendices now have:
\def\AppPrefix#1{\GenPagecommand{A#1}}
and:
pagecommand=\AppPrefix
in the setuplist, and the backmatter is done similarly.

Possibly this leaves me exposed if a very long title runs over into the
llap, but I'm hoping not to run into that. Is this the only solution here?

Thanks again.

Duncan

       reply	other threads:[~2005-08-02 11:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20050801163617.8E7D7127C9@ronja.ntg.nl>
2005-08-02 11:22 ` Duncan Hothersall [this message]
2005-08-01 16:36 Duncan Hothersall
     [not found] <20050801100004.BCAD8127BF@ronja.ntg.nl>
2005-08-01 13:39 ` Duncan Hothersall
2005-08-01 14:46   ` Hans Hagen
     [not found] <20050731204706.7E63E127A8@ronja.ntg.nl>
2005-08-01 10:09 ` Duncan Hothersall
  -- strict thread matches above, loose matches on Subject: below --
2005-08-01  9:38 Duncan Hothersall
2005-08-01  9:59 ` Taco Hoekwater

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=42EF578B.3050909@capdm.com \
    --to=dh@capdm.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).