ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* TOCS: part number, custom alternative and margins
@ 2009-04-15  2:34 Jeff Smith
  2009-04-20 15:08 ` Jeff Smith
  2009-04-20 19:44 ` Wolfgang Schuster
  0 siblings, 2 replies; 4+ messages in thread
From: Jeff Smith @ 2009-04-15  2:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-21 21:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-15  2:34 TOCS: part number, custom alternative and margins Jeff Smith
2009-04-20 15:08 ` Jeff Smith
2009-04-20 19:44 ` Wolfgang Schuster
2009-04-21 21:49   ` Jeff Smith

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