ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jeff Smith <ascarel@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: TOCS: part number, custom alternative and margins
Date: Mon, 20 Apr 2009 11:08:14 -0400	[thread overview]
Message-ID: <2e8813a0904200808g27fb257nae549f837a663fab@mail.gmail.com> (raw)
In-Reply-To: <2e8813a0904141934k35c58cf6q3912722ea0dbd5a@mail.gmail.com>

Hi,

Anybody has some time for this?

Thanks!
Jeff

On Tue, Apr 14, 2009 at 22:34, Jeff Smith <ascarel@gmail.com> wrote:
> Hi all!
>
> A while ago I asked how to achieve a particular layout I wanted for part
> titles in my table of contents. I was given this solution:
>
> \definelistplacement[partlist][none]#1#2#3%
>
> {\sc\inframed[width=broad,align=right,bottomframe=on,topframe=off,rightframe=off,leftframe=off]{{#2}}}
>
> \setuplist[part][alternative=partlist]
>
> With that, I get no part number, no page number, a title in small caps and a
> bottom frame. So far so good.
>
> In the same table, I also want my section and subsection titles to indent,
> at different values depending on levels (the further the section in the
> hierarchy, the further it indents). I use the margin= parameter for that.
>
> When I do that, however, the next part title indents equally to the same
> level as the last section or subsection did. See the example file toc.tex
> attached. Obviously, I don't want that.
>
> The only way I've found to avoid that is to get rid of the custom
> alternative, and transfer the \inframed command to a textstyle parameter
> inside a normal \setuplist[part] command. See toc-2.tex attached.
>
> When I do that, however, I can't get rid of the part number. I tried
> everything I could think about, but to no avail.
>
> I'm using MKII+Xetex. (ConTeXt  ver: 2008.11.10 21:40 MKII  fmt: 2008.11.15
> int: english/english)
>
> Can anyone help? What is the best solution?
>
> Thanks in advance!
> Jeff
>
>
>
>
>
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2009-04-20 15:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-15  2:34 Jeff Smith
2009-04-20 15:08 ` Jeff Smith [this message]
2009-04-20 19:44 ` Wolfgang Schuster
2009-04-21 21:49   ` Jeff Smith

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=2e8813a0904200808g27fb257nae549f837a663fab@mail.gmail.com \
    --to=ascarel@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).