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: TOCS: part number, custom alternative and margins
Date: Tue, 14 Apr 2009 22:34:37 -0400	[thread overview]
Message-ID: <2e8813a0904141934k35c58cf6q3912722ea0dbd5a@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1346 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 2001 bytes --]

[-- Attachment #2: toc.tex --]
[-- Type: application/x-tex, Size: 696 bytes --]

[-- Attachment #3: toc-2.tex --]
[-- Type: application/x-tex, Size: 673 bytes --]

[-- Attachment #4: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2009-04-15  2:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-15  2:34 Jeff Smith [this message]
2009-04-20 15:08 ` Jeff Smith
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=2e8813a0904141934k35c58cf6q3912722ea0dbd5a@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).